summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorunknown <dlenev@mysql.com>2005-03-21 13:28:48 +0300
committerunknown <dlenev@mysql.com>2005-03-21 13:28:48 +0300
commit4ebfa64a1942ad2c221f13f63cc4ec4c1399f819 (patch)
tree411b3d84812e85b9af9a8e9fa8e1b80a55c637c2 /strings
parent3d8ea9d1121b5e90d8b1f230b997754ecb661ae8 (diff)
parent35e6a4b418f46cb6197ff7c4bd6b5eb19261fdaf (diff)
downloadmariadb-git-4ebfa64a1942ad2c221f13f63cc4ec4c1399f819.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/src/mysql-5.0-merges
Diffstat (limited to 'strings')
-rw-r--r--strings/decimal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/strings/decimal.c b/strings/decimal.c
index 90e64ae892f..f288a93eb5e 100644
--- a/strings/decimal.c
+++ b/strings/decimal.c
@@ -139,8 +139,12 @@ static const dec1 frac_max[DIG_PER_DEC1-1]={
999900000, 999990000, 999999000,
999999900, 999999990 };
+#ifdef HAVE_purify
+#define sanity(d) DBUG_ASSERT((d)->len > 0)
+#else
#define sanity(d) DBUG_ASSERT((d)->len >0 && ((d)->buf[0] | \
(d)->buf[(d)->len-1] | 1))
+#endif
#define FIX_INTG_FRAC_ERROR(len, intg1, frac1, error) \
do \