mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-07-28 06:40:03 +00:00
Fix for CONPY-115:
Replaced the obsolete ULONG_LONG_MAX definition by ULLONG_MAX.
This commit is contained in:
@ -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>
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user