summaryrefslogtreecommitdiff
path: root/sql-common/my_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'sql-common/my_time.c')
-rw-r--r--sql-common/my_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c
index 109bea7b4dd..75b94d14ac4 100644
--- a/sql-common/my_time.c
+++ b/sql-common/my_time.c
@@ -127,7 +127,7 @@ static int get_number(uint *val, uint *number_of_fields, const char **str,
static int get_digits(uint *val, uint *number_of_fields, const char **str,
const char *end, uint length)
{
- return get_number(val, number_of_fields, str, min(end, *str + length));
+ return get_number(val, number_of_fields, str, MY_MIN(end, *str + length));
}
static int get_punct(const char **str, const char *end)