mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Fixed build failure on OpenSolaris
strings/ctype-simple.c: Fixed some compiler warnings
This commit is contained in:
parent
8d7f810894
commit
163d7acc9f
2 changed files with 6 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
* See COPYRIGHT.txt for details.
|
||||
*/
|
||||
|
||||
#include <my_config.h>
|
||||
#include <netinet/in.h>
|
||||
#include <errno.h>
|
||||
#include <poll.h>
|
||||
|
@ -17,6 +18,9 @@
|
|||
#if __linux__
|
||||
#include <sys/epoll.h>
|
||||
#endif
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
||||
#include "hstcpsvr_worker.hpp"
|
||||
#include "string_buffer.hpp"
|
||||
|
|
|
@ -1545,7 +1545,7 @@ my_strntoull10rnd_8bit(CHARSET_INFO *cs __attribute__((unused)),
|
|||
}
|
||||
}
|
||||
|
||||
digits= str - beg;
|
||||
digits= (int) (str - beg);
|
||||
|
||||
/* Continue to accumulate into ulonglong */
|
||||
for (dot= NULL, ull= ul; str < end; str++)
|
||||
|
@ -1582,7 +1582,7 @@ my_strntoull10rnd_8bit(CHARSET_INFO *cs __attribute__((unused)),
|
|||
}
|
||||
else
|
||||
{
|
||||
shift= dot - str;
|
||||
shift= (int) (dot - str);
|
||||
for ( ; str < end && (ch= (uchar) (*str - '0')) < 10; str++);
|
||||
}
|
||||
goto exp;
|
||||
|
|
Loading…
Reference in a new issue