arm64-gen.c: In load(), do not sign-extend 32-bit VT_CONST.

master
Edmund Grimley Evans 2015-03-07 17:29:54 +00:00
parent 8d4c861144
commit 9163393476
1 changed files with 2 additions and 2 deletions

View File

@ -495,8 +495,8 @@ ST_FUNC void load(int r, SValue *sv)
if (svr == VT_CONST) {
if ((svtt & VT_BTYPE) != VT_VOID)
arm64_movimm(intr(r),
arm64_type_size(svtt) == 3 ? sv->c.ull : svcul);
arm64_movimm(intr(r), arm64_type_size(svtt) == 3 ?
sv->c.ull : (uint32_t)svcul);
return;
}