[qfcc] Allow -1 width to match with 0

I initially wanted them to be separate, but return (and other
instructions where width is encoded in one of the operands) made that
difficult.
This commit is contained in:
Bill Currie 2022-01-20 18:39:06 +09:00
parent 5f66bfe887
commit 6487fe7ea7

View file

@ -178,7 +178,7 @@ check_operand_type (etype_t ot1, etype_t ot2)
static int
check_operand_width (int ow1, int ow2)
{
return ((ow1 == -1 && ow2) || ow1 == ow2);
return (ow1 == -1 || ow1 == ow2);
}
pr_ushort_t