Fix for CONPY-115:

Replaced the obsolete ULONG_LONG_MAX definition by
ULLONG_MAX.
This commit is contained in:
Georg Richter
2020-10-19 08:11:32 +02:00
parent d30042b01a
commit 3b2edf5b35
2 changed files with 2 additions and 2 deletions

View File

@ -29,6 +29,7 @@
#include <mysqld_error.h>
#include <time.h>
#include <docs/common.h>
#include <limits.h>
#if defined(_WIN32)
#include <windows.h>
@ -39,7 +40,6 @@ typedef CRITICAL_SECTION pthread_mutex_t;
#define pthread_mutex_destroy(A) DeleteCriticalSection(A)
#define pthread_self() GetCurrentThreadId()
#include <malloc.h>
#define ULONG_LONG_MAX _UI64_MAX
#else
#include <pthread.h>
#include <limits.h>

View File

@ -147,7 +147,7 @@ static unsigned long long my_strtoull(const char *str, size_t len, const char **
if (*p < '0' || *p > '9')
break;
if (val > ULONG_LONG_MAX /10 || val*10 > ULONG_LONG_MAX - (*p - '0'))
if (val > ULLONG_MAX /10 || val*10 > ULLONG_MAX - (*p - '0'))
{
*err = ERANGE;
break;