Skip to content

Commit

Permalink
Fix truncation warning on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Feb 21, 2018
1 parent 144c7f8 commit 23d7b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/my_time.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ longlong number_to_datetime(longlong nr, ulong sec_part, MYSQL_TIME *time_res,
ulonglong flags, int *was_cut);

static inline
longlong double_to_datetime(double nr, MYSQL_TIME *ltime, uint flags, int *cut)
longlong double_to_datetime(double nr, MYSQL_TIME *ltime, ulonglong flags, int *cut)
{
if (nr < 0 || nr > LONGLONG_MAX)
nr= (double)LONGLONG_MAX;
Expand Down

0 comments on commit 23d7b77

Please sign in to comment.