From b0bb443fa28ca2188aafd542a6917c402b1ce1a5 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 17 Sep 2007 16:16:17 -0600 Subject: [PATCH] fix i2l to preserve signedness --- src/run.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.cpp b/src/run.cpp index ec530865f6..2a6e3c8ba0 100644 --- a/src/run.cpp +++ b/src/run.cpp @@ -1287,7 +1287,7 @@ run(Thread* t) } goto loop; case i2l: { - pushLong(t, popInt(t)); + pushLong(t, static_cast(popInt(t))); } goto loop; case i2s: {