Fix memory corruptions in lexer, which occured while parsing cse.js; remove lexer.log and parser.log files

This commit is contained in:
Ilmir Usmanov
2014-07-25 14:16:29 +04:00
parent c9c26251a4
commit 40007126fa
7 changed files with 26 additions and 50 deletions
+4 -4
View File
@@ -94,15 +94,15 @@ serializer_dump_nums (const int32_t nums[], uint8_t size, uint8_t offset, uint8_
static int opcode_counter = 0;
void
serializer_dump_opcode (const void *opcode)
serializer_dump_opcode (OPCODE opcode)
{
bytecode_opcodes[opcode_counter++] = *((OPCODE*)opcode);
bytecode_opcodes[opcode_counter++] = opcode;
}
void
serializer_rewrite_opcode (const uint8_t loc, const void *opcode)
serializer_rewrite_opcode (const uint8_t loc, OPCODE opcode)
{
bytecode_opcodes[loc] = *((OPCODE*)opcode);
bytecode_opcodes[loc] = opcode;
}
void