summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorunknown <monty@mysql.com/nosik.monty.fi>2006-11-20 22:46:52 +0200
committerunknown <monty@mysql.com/nosik.monty.fi>2006-11-20 22:46:52 +0200
commit886965303155d1c2fbd90e3606fd192d4ba7741b (patch)
tree352c3fca9ea50d4ca34dacb71d6f6ec2a89df543 /strings
parentdaaddeb656c26c685962fef69d19e7f264620e2b (diff)
parent14decc4fbc04b8ce0c5efb7d76b711c6e60a0266 (diff)
downloadmariadb-git-886965303155d1c2fbd90e3606fd192d4ba7741b.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0 mysql-test/t/ctype_ucs.test: Auto merged sql/log_event.cc: Auto merged sql/slave.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_repl.cc: Auto merged sql/sql_select.cc: Auto merged
Diffstat (limited to 'strings')
-rw-r--r--strings/decimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/decimal.c b/strings/decimal.c
index 5a0bc0968b6..3b51d089c22 100644
--- a/strings/decimal.c
+++ b/strings/decimal.c
@@ -1348,7 +1348,7 @@ int bin2decimal(char *from, decimal_t *to, int precision, int scale)
}
from+=i;
*buf=x ^ mask;
- if (((uint32)*buf) >= powers10[intg0x+1])
+ if (((ulonglong)*buf) >= (ulonglong) powers10[intg0x+1])
goto err;
if (buf > to->buf || *buf != 0)
buf++;