From 03ec25720d1e040c3fe51f4577e49c1b39914c80 Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Tue, 24 Jul 2018 07:21:41 -0700 Subject: [PATCH] Add cast to satisfy the C++ warning gods. --- src/cli/vm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");