Fixed typo so that ulonglong are properly converted to double on AIX with gcc 3.1

This commit is contained in:
monty@hundin.mysql.fi 2002-08-16 12:50:21 +03:00
parent dea34642bd
commit a0e9e22320
3 changed files with 18 additions and 6 deletions

View file

@ -46868,6 +46868,7 @@ users use this code as the rest of the code and because of this we are
not yet 100% confident in this code.
@menu
* News-3.23.53:: Changes in release 3.23.53
* News-3.23.52:: Changes in release 3.23.52
* News-3.23.51:: Changes in release 3.23.51
* News-3.23.50:: Changes in release 3.23.50
@ -46924,13 +46925,18 @@ not yet 100% confident in this code.
* News-3.23.0:: Changes in release 3.23.0
@end menu
@node News-3.23.52, News-3.23.51, News-3.23.x, News-3.23.x
@node News-3.23.53, News-3.23.52, News-3.23.x, News-3.23.x
@appendixsubsec Changes in release 3.23.53
@itemize @bullet
@item
Fixed problem with @code{UNSIGNED BIGINT} on AIX (again).
@end itemize
@node News-3.23.52, News-3.23.51, News-3.23.53, News-3.23.x
@appendixsubsec Changes in release 3.23.52
@itemize @bullet
@item
Fixed problem with @code{UNSIGNED BIGINT} on AIX.
@item
Fixed security bug when having an empty databasename in the @code{user.db}
table.
@item

View file

@ -104,9 +104,15 @@
#define _H_STRINGS
#define _SYS_STREAM_H
#define _AIX32_CURSES
#define longlong2double(A) my_longlong2double(A)
double my_longlong2double(unsigned long long A);
#define ulonglong2double(A) my_ulonglong2double(A)
#ifdef __cplusplus
extern "C" {
#endif
double my_ulonglong2double(unsigned long long A);
#ifdef __cplusplus
}
#endif
#endif /* _AIX */
#ifdef HAVE_BROKEN_SNPRINTF /* HPUX 10.20 don't have this defined */
#undef HAVE_SNPRINTF

View file

@ -33,7 +33,7 @@
double my_longlong2double(unsigned long long nr)
double my_ulonglong2double(unsigned long long nr)
{
return (double) nr;
}