mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Hooks can't be dict keys, tweaked Toy_readFile
This commit is contained in:
@@ -27,7 +27,7 @@ void error(char* msg) {
|
||||
int main() {
|
||||
{
|
||||
size_t size = 0;
|
||||
const char* source = Toy_readFile("scripts/call-from-host.toy", &size);
|
||||
const char* source = (const char*)Toy_readFile("scripts/call-from-host.toy", &size);
|
||||
const unsigned char* tb = Toy_compileString(source, &size);
|
||||
free((void*)source);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user