mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix mmap read offset not being initialized
This commit is contained in:
@@ -324,6 +324,7 @@ struct LexerState *lexer_OpenFile(char const *path)
|
||||
state->isMmapped = true;
|
||||
state->ptr = pa;
|
||||
state->size = size;
|
||||
state->offset = 0;
|
||||
|
||||
if (verbose)
|
||||
printf("File %s successfully mmap()ped\n", path);
|
||||
|
||||
Reference in New Issue
Block a user