Fix toBoolean()
This commit is contained in:
parent
f65adc81d8
commit
3c85b3f964
|
@ -86,7 +86,11 @@ namespace de4dot.blocks.cflow {
|
|||
}
|
||||
|
||||
public Int32Value toBoolean() {
|
||||
return new Int32Value(value & 1, validMask | (NO_UNKNOWN_BITS << 1));
|
||||
if (isNonZero())
|
||||
return new Int32Value(1, NO_UNKNOWN_BITS);
|
||||
if (isZero())
|
||||
return this;
|
||||
return createUnknownBool();
|
||||
}
|
||||
|
||||
public Int32Value toInt8() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user