replaced void* with unsigned char* everywhere

This commit is contained in:
2025-02-08 00:53:23 +11:00
parent 470836a390
commit c646904407
8 changed files with 17 additions and 17 deletions

View File

@@ -332,7 +332,7 @@ int repl(const char* filepath) {
continue;
}
void* buffer = Toy_compileModule(ast);
unsigned char* buffer = Toy_compileModule(ast);
Toy_Module module = Toy_parseModule(buffer);
Toy_bindVM(&vm, &module, runCount++ > 0);
@@ -481,7 +481,7 @@ int main(int argc, const char* argv[]) {
Toy_Bucket* bucket = Toy_allocateBucket(TOY_BUCKET_IDEAL);
Toy_Ast* ast = Toy_scanParser(&bucket, &parser);
void* buffer = Toy_compileModule(ast);
unsigned char* buffer = Toy_compileModule(ast);
Toy_freeBucket(&bucket);
free(source);