aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-03-07 17:29:54 +0000
committerEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-03-07 17:32:39 +0000
commit916339347642b7b22d3cfa18bf5058ffbfe74679 (patch)
tree205438f64738832955e0aba1c123aa34630b6a68
parent8d4c86114492e210f801ed98bfa0424645e14c8e (diff)
downloadtinycc-916339347642b7b22d3cfa18bf5058ffbfe74679.tar.gz
tinycc-916339347642b7b22d3cfa18bf5058ffbfe74679.tar.bz2
arm64-gen.c: In load(), do not sign-extend 32-bit VT_CONST.
-rw-r--r--arm64-gen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arm64-gen.c b/arm64-gen.c
index 5444f29..fe1961d 100644
--- a/arm64-gen.c
+++ b/arm64-gen.c
@@ -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;
}