From 743bbc7a2a42de72d4e8a5522c6fd0fc0466275f Mon Sep 17 00:00:00 2001 From: Emil Lenngren Date: Sat, 26 May 2012 17:59:14 +0000 Subject: [PATCH] [GB.JIT] * BUG: Fix String -> Long conversion. git-svn-id: svn://localhost/gambas/trunk@4783 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.jit/src/jit_codegen_conv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.jit/src/jit_codegen_conv.h b/gb.jit/src/jit_codegen_conv.h index d0e80c6be..97efeaf36 100644 --- a/gb.jit/src/jit_codegen_conv.h +++ b/gb.jit/src/jit_codegen_conv.h @@ -438,7 +438,7 @@ __s2l: create_throw(E_TYPE, JIF.F_TYPE_get_name(type), JIF.F_TYPE_get_name(value->type)); }); - llvm::Value* intval = read_value(addr, T_INTEGER); + llvm::Value* intval = read_value(addr, type == T_LONG ? T_LONG : T_INTEGER); if (type < T_INTEGER) intval = builder->CreateTrunc(intval, TYPE_llvm(type));