From 1c5fd80a04991a8e659499b864f8fcc969c379e5 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 16 Oct 2018 06:59:30 +0400 Subject: Fixing a test failure on 32bit platforms in the new MDEV-17434 code --- sql/item_timefunc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/item_timefunc.cc') 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(<ime, 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+ -- cgit v1.2.1