Skip to content
Snippets Groups Projects
Commit 803030e7 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[project @ 2000-08-06 12:22:32 by panne]

Fixed conversion of MachWord to MachInt for large literals. Although
completely untested, I believe this fixes bug #111021.
parent 857ac994
No related merge requests found
......@@ -152,7 +152,7 @@ word2IntLit, int2WordLit, char2IntLit, int2CharLit,
addr2IntLit, int2AddrLit, float2DoubleLit, double2FloatLit :: Literal -> Literal
word2IntLit (MachWord w)
| w > tARGET_MAX_INT = MachInt ((-1) + tARGET_MAX_WORD - w)
| w > tARGET_MAX_INT = MachInt (w - tARGET_MAX_WORD - 1)
| otherwise = MachInt w
int2WordLit (MachInt i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment