changeset 9237:5fbee58dba33

fixed ldiv underflow handling on windows
author Christian Haeubl <haeubl@ssw.jku.at>
date Mon, 22 Apr 2013 17:06:06 +0200
parents ec607ddaa99b
children 8f01fe16e473
files src/os/windows/vm/os_windows.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/windows/vm/os_windows.cpp	Mon Apr 22 15:56:09 2013 +0200
+++ b/src/os/windows/vm/os_windows.cpp	Mon Apr 22 17:06:06 2013 +0200
@@ -2179,7 +2179,7 @@
       ctx->Rax = (DWORD64)min_jlong;     // result
     } else {
       ctx->Rip = (DWORD64)pc + 2;        // idiv reg, reg  is 2 bytes
-      ctx->Rax = (DWORD64)min_jint;      // result
+      ctx->Rax = (DWORD64)min_jlong;     // result
     }
     ctx->Rdx = (DWORD64)0;             // remainder
     // Continue the execution