diff --git a/src/cli/vm.c b/src/cli/vm.c index 51ce1d17..d9b43491 100644 --- a/src/cli/vm.c +++ b/src/cli/vm.c @@ -356,7 +356,8 @@ WrenInterpretResult runFile(const char* path) WrenInterpretResult runRepl() { - rootDirectory = "."; + // This cast is safe since we don't try to free the string later. + rootDirectory = (char*)"."; initVM(); printf("\\\\/\"-\n");