Be less strict when checking signed values
This commit is contained in:
parent
c10141ffed
commit
5863e7490b
@ -276,9 +276,13 @@ static int _call_operands_immediate(ArchOperandDefinition definition,
|
||||
|
||||
/* check if the size fits */
|
||||
value = operand->value.immediate.value;
|
||||
#if 0 /* XXX ignore for now */
|
||||
if((size = AO_GET_SIZE(definition)) > 0
|
||||
&& AO_GET_FLAGS(definition) & AOF_SIGNED)
|
||||
size--;
|
||||
#else
|
||||
size = AO_GET_SIZE(definition);
|
||||
#endif
|
||||
value >>= size;
|
||||
if(value > 0)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user