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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc
index 317495d354e..40d1ba2ff3f 100644
--- a/sql/item_timefunc.cc
+++ b/sql/item_timefunc.cc
@@ -2148,7 +2148,7 @@ longlong Item_extract::val_int()
week_format= current_thd->variables.default_week_format;
return calc_week(&ltime, week_mode(week_format), &year);
}
- case INTERVAL_DAY: return ltime.day * neg;
+ case INTERVAL_DAY: return (long) ltime.day * neg;
case INTERVAL_DAY_HOUR: return (long) (ltime.day*100L+ltime.hour)*neg;
case INTERVAL_DAY_MINUTE: return (long) (ltime.day*10000L+
ltime.hour*100L+