Don't crash when parsing operations without operands

This commit is contained in:
Aaron Puchert 2015-02-05 22:50:26 +01:00 committed by pancake
parent e393167227
commit 67d5c28282

View File

@ -932,7 +932,7 @@ static int assemble(RAsm *a, RAsmOp *ao, const char *str) {
// Parse operands
int op_ind = 0;
x86newTokenType ttype = TT_SPECIAL;
x86newTokenType ttype = getToken(str, &pos, &nextpos);
while (op_ind < 3 && ttype != TT_EOF) {
// Read operand
pos += parseOperand(str + pos, &operands[op_ind++]);