Add cast to satisfy the C++ warning gods.

This commit is contained in:
Bob Nystrom
2018-07-24 07:21:41 -07:00
parent c237a44b88
commit 03ec25720d

View File

@ -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");