diff options
author | Alexander Barkov <alexander.barkov@oracle.com> | 2012-01-24 13:24:05 +0400 |
---|---|---|
committer | Alexander Barkov <alexander.barkov@oracle.com> | 2012-01-24 13:24:05 +0400 |
commit | c0badf88c6bdb685e8313e55ca2f721ba237e9ce (patch) | |
tree | e55f68f1430f8241de85d3bf1049c1cabdd62ce0 /sql-common/my_time.c | |
parent | 825c74f6aa5bdeb1d041846df3f592714dd741bb (diff) | |
parent | f8e924b467d099b5d99248c160a2aba59a6ea3ce (diff) | |
download | mariadb-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.c | 2 |
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 */ |