Be less strict when checking signed values

This commit is contained in:
Pierre Pronchery 2011-04-18 05:06:04 +00:00
parent c10141ffed
commit 5863e7490b

View File

@ -276,9 +276,13 @@ static int _call_operands_immediate(ArchOperandDefinition definition,
/* check if the size fits */ /* check if the size fits */
value = operand->value.immediate.value; value = operand->value.immediate.value;
#if 0 /* XXX ignore for now */
if((size = AO_GET_SIZE(definition)) > 0 if((size = AO_GET_SIZE(definition)) > 0
&& AO_GET_FLAGS(definition) & AOF_SIGNED) && AO_GET_FLAGS(definition) & AOF_SIGNED)
size--; size--;
#else
size = AO_GET_SIZE(definition);
#endif
value >>= size; value >>= size;
if(value > 0) if(value > 0)
return -1; return -1;