Skip to content

Commit

Permalink
Fix undefined behavior that broke on GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed May 27, 2019
1 parent 6735d2d commit d189103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emu/float80.c
Expand Up @@ -224,7 +224,7 @@ float80 f80_from_double(double d) {
else
f.exp = bias((int) db.exp - 0x3ff);

f.signif = db.signif << 11;
f.signif = (uint64_t) db.signif << 11;
if (db.exp != EXP64_DENORMAL)
f.signif |= CURSED_BIT;
f.sign = db.sign;
Expand Down

0 comments on commit d189103

Please sign in to comment.