mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-17 15:54:07 +10:00
Hooks can't be dict keys, tweaked Toy_readFile
This commit is contained in:
@@ -53,7 +53,7 @@ void runSourceCustom(const char* source) {
|
||||
|
||||
void runSourceFileCustom(const char* fname) {
|
||||
size_t size = 0; //not used
|
||||
const char* source = Toy_readFile(fname, &size);
|
||||
const char* source = (const char*)Toy_readFile(fname, &size);
|
||||
runSourceCustom(source);
|
||||
free((void*)source);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user