summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-10-16 06:59:30 +0400
committerAlexander Barkov <bar@mariadb.com>2018-10-16 06:59:30 +0400
commit1c5fd80a04991a8e659499b864f8fcc969c379e5 (patch)
tree67e1ccbd21b3466001cbc71046fb63ce6ea4dffa /sql/item_timefunc.cc
parent22e75434e7bb0405a9e36c9c9f22b6f30f7206db (diff)
downloadmariadb-git-1c5fd80a04991a8e659499b864f8fcc969c379e5.tar.gz
Fixing a test failure on 32bit platforms in the new MDEV-17434 code
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+