Add code to truncate r4/r8 values
This commit is contained in:
parent
11256d6e76
commit
94b21490da
|
@ -143,6 +143,16 @@ namespace de4dot.blocks.cflow {
|
||||||
if (value.isInt64())
|
if (value.isInt64())
|
||||||
return value;
|
return value;
|
||||||
return Int64Value.createUnknown();
|
return Int64Value.createUnknown();
|
||||||
|
|
||||||
|
case ElementType.R4:
|
||||||
|
if (value.isReal8())
|
||||||
|
return new Real8Value((float)((Real8Value)value).value);
|
||||||
|
return new UnknownValue();
|
||||||
|
|
||||||
|
case ElementType.R8:
|
||||||
|
if (value.isReal8())
|
||||||
|
return value;
|
||||||
|
return new UnknownValue();
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user