wpp: Fix the output type for the "unsigned OP signed" cases in BIN_OP_INT and friends.
This commit is contained in:
parent
d698e226f6
commit
7f6d6b835d
|
@ -61,7 +61,7 @@
|
|||
else if(cv_signed(v1) && !cv_signed(v2)) \
|
||||
r.val.si = v1.val.si OP v2.val.ui; \
|
||||
else if(!cv_signed(v1) && cv_signed(v2)) \
|
||||
r.val.ui = v1.val.ui OP v2.val.si; \
|
||||
r.val.si = v1.val.ui OP v2.val.si; \
|
||||
else \
|
||||
r.val.ui = v1.val.ui OP v2.val.ui;
|
||||
|
||||
|
@ -72,7 +72,7 @@
|
|||
else if(cv_signed(v1) && !cv_signed(v2)) \
|
||||
r.val.sl = v1.val.sl OP v2.val.ul; \
|
||||
else if(!cv_signed(v1) && cv_signed(v2)) \
|
||||
r.val.ul = v1.val.ul OP v2.val.sl; \
|
||||
r.val.sl = v1.val.ul OP v2.val.sl; \
|
||||
else \
|
||||
r.val.ul = v1.val.ul OP v2.val.ul;
|
||||
|
||||
|
@ -83,7 +83,7 @@
|
|||
else if(cv_signed(v1) && !cv_signed(v2)) \
|
||||
r.val.sll = v1.val.sll OP v2.val.ull; \
|
||||
else if(!cv_signed(v1) && cv_signed(v2)) \
|
||||
r.val.ull = v1.val.ull OP v2.val.sll; \
|
||||
r.val.sll = v1.val.ull OP v2.val.sll; \
|
||||
else \
|
||||
r.val.ull = v1.val.ull OP v2.val.ull;
|
||||
|
||||
|
|
Loading…
Reference in New Issue