Module: wine Branch: master Commit: 22edbd849ada33e8037f6f2b7fde75b1617f3f78 URL: http://source.winehq.org/git/wine.git/?a=commit;h=22edbd849ada33e8037f6f2b7f...
Author: Piotr Caban piotr@codeweavers.com Date: Mon Dec 18 12:10:28 2017 +0100
msvcrt: Correctly set rounding mode in _ftol implementation.
Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/msvcrt/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c index 0627bfa..7fb4666 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -693,7 +693,7 @@ __ASM_GLOBAL_FUNC(MSVCRT__ftol, "subl $12, %esp\n\t" /* sizeof(LONGLONG) + 2*sizeof(WORD) */ "fnstcw (%esp)\n\t" "mov (%esp), %ax\n\t" - "or $0xc, %ax\n\t" + "or $0xc00, %ax\n\t" "mov %ax, 2(%esp)\n\t" "fldcw 2(%esp)\n\t" "fistpq 4(%esp)\n\t"