Commit 9b8a0595 authored by Alexandre Julliard's avatar Alexandre Julliard

_ftol should return a 64-bit int (spotted by Jon Griffiths).

parent 32e929c0
......@@ -112,7 +112,7 @@
@ cdecl _fsopen(str str long) msvcrt._fsopen
@ cdecl _fstat(long ptr) CRTDLL__fstat
@ cdecl _ftime(ptr) msvcrt._ftime
@ cdecl _ftol() msvcrt._ftol
@ cdecl -ret64 _ftol() msvcrt._ftol
@ cdecl _fullpath(ptr str long) msvcrt._fullpath
@ cdecl _futime(long ptr) msvcrt._futime
@ cdecl _gcvt( double long str) msvcrt._gcvt
......
......@@ -243,7 +243,7 @@
@ cdecl _fstat(long ptr) MSVCRT__fstat
@ cdecl _fstati64(long ptr)
@ cdecl _ftime(ptr)
@ cdecl _ftol() ntdll._ftol
@ cdecl -ret64 _ftol() ntdll._ftol
@ cdecl _fullpath(ptr str long)
@ cdecl _futime(long ptr)
@ cdecl _gcvt(double long str)
......
......@@ -271,7 +271,7 @@
@ cdecl _fstat(long ptr) msvcrt._fstat
@ cdecl _fstati64(long ptr) msvcrt._fstati64
@ cdecl _ftime(ptr) msvcrt._ftime
@ cdecl _ftol() ntdll._ftol
@ cdecl -ret64 _ftol() ntdll._ftol
@ cdecl _fullpath(ptr str long) msvcrt._fullpath
@ cdecl _futime(long ptr) msvcrt._futime
@ cdecl _gcvt( double long str) msvcrt._gcvt
......
......@@ -54,13 +54,13 @@ LPCSTR debugstr_us( const UNICODE_STRING *us )
* [GNUC && i386]
*/
#if defined(__GNUC__) && defined(__i386__)
LONG __cdecl NTDLL__ftol(void)
LONGLONG __cdecl NTDLL__ftol(void)
{
/* don't just do DO_FPU("fistp",retval), because the rounding
* mode must also be set to "round towards zero"... */
double fl;
POP_FPU(fl);
return (LONG)fl;
return (LONGLONG)fl;
}
#endif /* defined(__GNUC__) && defined(__i386__) */
......@@ -73,10 +73,10 @@ LONG __cdecl NTDLL__ftol(void)
* [!GNUC && i386]
*/
#if !defined(__GNUC__) && defined(__i386__)
LONG __cdecl NTDLL__ftol(double fl)
LONGLONG __cdecl NTDLL__ftol(double fl)
{
FIXME("should be register function\n");
return (LONG)fl;
return (LONGLONG)fl;
}
#endif /* !defined(__GNUC__) && defined(__i386__) */
......
......@@ -908,7 +908,7 @@
@ stdcall -ret64 _aullrem(long long long long)
@ stdcall -register -i386 _chkstk() NTDLL_chkstk
@ stub _fltused
@ cdecl _ftol() NTDLL__ftol
@ cdecl -ret64 _ftol() NTDLL__ftol
@ cdecl _i64toa(long long ptr long)
@ cdecl _i64tow(long long ptr long)
@ cdecl _itoa(long ptr long)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment