express: More robust memory access operator parsing (nw)

This commit is contained in:
Olivier Galibert 2017-03-26 14:06:51 +02:00
parent 3047b62665
commit fa2c6e5829

View File

@ -874,7 +874,7 @@ void parsed_expression::parse_symbol_or_number(parse_token &token, const char *&
} }
// check for memory @ operators // check for memory @ operators
if (string[0] == '@' || string[0] == '!') if ((string[0] == '@' || string[0] == '!') && (buffer.back() == 'b' || buffer.back() == 'w' || buffer.back() == 'd' || buffer.back() == 'q'))
{ {
bool with_se = string[0] == '!'; bool with_se = string[0] == '!';
string += 1; string += 1;