summaryrefslogtreecommitdiff
path: root/sql/sql_time.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-03-13 12:30:29 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-03-13 12:31:55 +0200
commit5fe87ac413cdc27ef09ea130a0bc4feea410cba0 (patch)
tree3d375ccb503dfe23c934928fcf549c8a042a70d7 /sql/sql_time.cc
parent51e9381dcc01ebd72d4f0adc057a64213f850d70 (diff)
parented21202a14e981a997061db12b2a377910fb02d5 (diff)
downloadmariadb-git-5fe87ac413cdc27ef09ea130a0bc4feea410cba0.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'sql/sql_time.cc')
-rw-r--r--sql/sql_time.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_time.cc b/sql/sql_time.cc
index bb400e04e9f..68e0f2acc12 100644
--- a/sql/sql_time.cc
+++ b/sql/sql_time.cc
@@ -1,5 +1,5 @@
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates.
- Copyright (c) 2009, 2013 Monty Program Ab.
+ Copyright (c) 2009, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -476,7 +476,7 @@ bool double_to_datetime_with_warn(double value, MYSQL_TIME *ltime,
if (neg)
value= -value;
- if (value > LONGLONG_MAX)
+ if (value > static_cast<double>(LONGLONG_MAX))
value= static_cast<double>(LONGLONG_MAX);
longlong nr= static_cast<ulonglong>(floor(value));