summaryrefslogtreecommitdiff
path: root/sql-common/my_time.c
diff options
context:
space:
mode:
authorAlexander Barkov <alexander.barkov@oracle.com>2012-01-24 13:24:05 +0400
committerAlexander Barkov <alexander.barkov@oracle.com>2012-01-24 13:24:05 +0400
commitc0badf88c6bdb685e8313e55ca2f721ba237e9ce (patch)
treee55f68f1430f8241de85d3bf1049c1cabdd62ce0 /sql-common/my_time.c
parent825c74f6aa5bdeb1d041846df3f592714dd741bb (diff)
parentf8e924b467d099b5d99248c160a2aba59a6ea3ce (diff)
downloadmariadb-git-c0badf88c6bdb685e8313e55ca2f721ba237e9ce.tar.gz
Merging BUG#13458237 from 5.1.
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 feac016fa00..15627844a64 100644
--- a/sql-common/my_time.c
+++ b/sql-common/my_time.c
@@ -783,7 +783,7 @@ long calc_daynr(uint year,uint month,uint day)
temp=(int) ((y/100+1)*3)/4;
DBUG_PRINT("exit",("year: %d month: %d day: %d -> daynr: %ld",
y+(month <= 2),month,day,delsum+y/4-temp));
- DBUG_ASSERT(delsum+(int) y/4-temp > 0);
+ DBUG_ASSERT(delsum+(int) y/4-temp >= 0);
DBUG_RETURN(delsum+(int) y/4-temp);
} /* calc_daynr */