Commit fcc88551 authored by Ben.Lippmeier@anu.edu.au's avatar Ben.Lippmeier@anu.edu.au
Browse files

SPARC NCG: When getting a 64 bit word, promote halves to 64 bit before shifting

parent 456dc6d6
......@@ -307,7 +307,7 @@ rts_getInt64 (HaskellObj p)
// p->header.info == I64zh_static_info);
tmp = (HsInt32*)&(UNTAG_CLOSURE(p)->payload[0]);
HsInt64 i = (HsInt64)(tmp[0] << 32) | (HsInt64)tmp[1];
HsInt64 i = (HsInt64)((HsInt64)(tmp[0]) << 32) | (HsInt64)tmp[1];
return i;
}
......
Supports Markdown
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