From bdb60ecef75ef166b7b929d5d6122d96dab79f10 Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 13 Aug 2018 00:24:38 +0200 Subject: [PATCH] Correctly compile long public constants. [GB.JIT] * BUG: Correctly compile long public constants. --- main/lib/jit/jit_body.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/lib/jit/jit_body.c b/main/lib/jit/jit_body.c index 68e7fa061..c387a30c1 100644 --- a/main/lib/jit/jit_body.c +++ b/main/lib/jit/jit_body.c @@ -934,7 +934,7 @@ static void push_unknown(int index) case T_BYTE: push(T_BYTE, "(uchar)%d", desc->constant.value._integer); break; case T_SHORT: push(T_SHORT, "(short)%d", desc->constant.value._integer); break; case T_INTEGER: push(T_INTEGER, "(int)%d", desc->constant.value._integer); break; - case T_LONG: push(T_LONG, "(int64_t)%d", desc->constant.value._long); break; + case T_LONG: push(T_LONG, "(int64_t)%" PRId64, desc->constant.value._long); break; case T_SINGLE: push(T_SINGLE, "(*(float *)%p)", &desc->constant.value._single); break; case T_FLOAT: push(T_FLOAT, "(*(double *)%p)", &desc->constant.value._float); break; case T_POINTER: push(T_POINTER, "(intptr_t)%p", desc->constant.value._pointer); break;