Change strings offset size from 8 bits to 16 bits

This commit is contained in:
Ilmir Usmanov
2014-07-29 17:49:13 +04:00
parent bc9d80147a
commit e497875c06
13 changed files with 63 additions and 45 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ parser_run (const char *script_source, size_t script_source_size __unused)
const char *strings[MAX_STRINGS];
int32_t nums[MAX_NUMS];
uint8_t strings_num, nums_count;
uint8_t offset;
uint16_t offset;
const OPCODE *opcodes;
TODO( Consider using script_source_size in lexer to check buffer boundaries );