Commit 38ec58ed authored by Adrian Johnson's avatar Adrian Johnson

Lexer: convert integer to real when overflow occurs

Bug 45605
parent df89de61
......@@ -228,11 +228,13 @@ Object *Lexer::getObj(Object *obj, int objNum) {
break;
}
}
if (neg)
if (neg) {
xi = -xi;
xf = -xf;
}
if (unlikely(overflownInteger)) {
if (overflownUnsignedInteger) {
obj->initError();
obj->initReal(xf);
} else {
obj->initUint(xui);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment