Commit d4866c7d authored by Eugene Kosov's avatar Eugene Kosov

fix clang warnings

parent f6087137
...@@ -118,7 +118,7 @@ longlong number_to_datetime(longlong nr, ulong sec_part, MYSQL_TIME *time_res, ...@@ -118,7 +118,7 @@ longlong number_to_datetime(longlong nr, ulong sec_part, MYSQL_TIME *time_res,
static inline static inline
longlong double_to_datetime(double nr, MYSQL_TIME *ltime, uint flags, int *cut) longlong double_to_datetime(double nr, MYSQL_TIME *ltime, uint flags, int *cut)
{ {
if (nr < 0 || nr > LONGLONG_MAX) if (nr < 0 || nr > (double)LONGLONG_MAX)
nr= (double)LONGLONG_MAX; nr= (double)LONGLONG_MAX;
return number_to_datetime((longlong) floor(nr), return number_to_datetime((longlong) floor(nr),
(ulong)((nr-floor(nr))*TIME_SECOND_PART_FACTOR), (ulong)((nr-floor(nr))*TIME_SECOND_PART_FACTOR),
......
...@@ -1317,7 +1317,7 @@ char *ha_connect::GetRealString(PCSZ s) ...@@ -1317,7 +1317,7 @@ char *ha_connect::GetRealString(PCSZ s)
{ {
char *sv; char *sv;
if (IsPartitioned() && s && partname && *partname) { if (IsPartitioned() && s && *partname) {
sv= (char*)PlugSubAlloc(xp->g, NULL, 0); sv= (char*)PlugSubAlloc(xp->g, NULL, 0);
sprintf(sv, s, partname); sprintf(sv, s, partname);
PlugSubAlloc(xp->g, NULL, strlen(sv) + 1); PlugSubAlloc(xp->g, NULL, strlen(sv) + 1);
......
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