Hooks can't be dict keys, tweaked Toy_readFile

This commit is contained in:
2023-02-18 16:47:38 +00:00
parent 8a68d864e6
commit 6fa224fa7b
13 changed files with 22 additions and 20 deletions

View File

@@ -49,7 +49,7 @@ static int nativeLoadScript(Toy_Interpreter* interpreter, Toy_LiteralArray* argu
//load and compile the bytecode
size_t fileSize = 0;
const char* source = Toy_readFile(filePath, &fileSize);
const char* source = (const char*)Toy_readFile(filePath, &fileSize);
if (!source) {
interpreter->errorOutput("Failed to load source file\n");