# HG changeset patch # User Christian Haeubl # Date 1366643166 -7200 # Node ID 5fbee58dba3354e0931db45d645e4d839de86b3b # Parent ec607ddaa99b0f917ce8150e1670010a3b6252bb fixed ldiv underflow handling on windows diff -r ec607ddaa99b -r 5fbee58dba33 src/os/windows/vm/os_windows.cpp --- 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