summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r--sql/item_timefunc.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc
index fcb68d07f61..5b09f58d41e 100644
--- a/sql/item_timefunc.cc
+++ b/sql/item_timefunc.cc
@@ -455,7 +455,7 @@ void Item_func_curtime::fix_length_and_dec()
(int) start->tm_hour,
(int) start->tm_min,
(int) start->tm_sec);
- buff_length=strlen(buff);
+ buff_length=(uint) strlen(buff);
}
void Item_func_now::fix_length_and_dec()
@@ -478,7 +478,7 @@ void Item_func_now::fix_length_and_dec()
(int) start->tm_hour,
(int) start->tm_min,
(int) start->tm_sec);
- buff_length=strlen(buff);
+ buff_length=(uint) strlen(buff);
/* For getdate */
ltime.year= start->tm_year+1900;
ltime.month= start->tm_mon+1;
@@ -522,7 +522,7 @@ String *Item_func_sec_to_time::val_str(String *str)
uint sec= (uint) (seconds % 3600);
sprintf(buff,"%s%02lu:%02u:%02u",sign,(long) (seconds/3600),
sec/60, sec % 60);
- str->copy(buff,strlen(buff));
+ str->copy(buff,(uint) strlen(buff));
return str;
}