summaryrefslogtreecommitdiff
path: root/sql/sql_time.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-09-23 15:48:47 +0400
committerAlexander Barkov <bar@mariadb.org>2017-09-23 15:48:47 +0400
commit840f1310cb6ee15cffdac5a4d2a95551575b2c3b (patch)
treed9151e92561eb73da935cfd2320e047635b677e2 /sql/sql_time.h
parentb652430f0094e2baa475b6ea3a3d87da24202f76 (diff)
downloadmariadb-git-840f1310cb6ee15cffdac5a4d2a95551575b2c3b.tar.gz
Fixing a few -Wconversion warnings
Diffstat (limited to 'sql/sql_time.h')
-rw-r--r--sql/sql_time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_time.h b/sql/sql_time.h
index 03e38c158f6..43c19f7c451 100644
--- a/sql/sql_time.h
+++ b/sql/sql_time.h
@@ -106,7 +106,7 @@ inline void datetime_to_date(MYSQL_TIME *ltime)
DBUG_ASSERT(ltime->time_type == MYSQL_TIMESTAMP_DATE ||
ltime->time_type == MYSQL_TIMESTAMP_DATETIME);
DBUG_ASSERT(ltime->neg == 0);
- ltime->hour= ltime->minute= ltime->second= ltime->second_part= 0;
+ ltime->second_part= ltime->hour= ltime->minute= ltime->second= 0;
ltime->time_type= MYSQL_TIMESTAMP_DATE;
}
inline void date_to_datetime(MYSQL_TIME *ltime)