diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-04-25 17:22:25 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-04-25 17:22:25 +0200 |
commit | 0accbd0364e0333e0b119aa9ce93e34ded9df6cb (patch) | |
tree | bdf0738c29dc1f57fbfba3a1754524e238f15b52 /mysys/checksum.c | |
parent | 37f87d73ae8dc6c30594867b40a5d70159acf63c (diff) | |
download | mariadb-git-0accbd0364e0333e0b119aa9ce93e34ded9df6cb.tar.gz |
lots of post-merge changes
Diffstat (limited to 'mysys/checksum.c')
-rw-r--r-- | mysys/checksum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/checksum.c b/mysys/checksum.c index b2579351134..c8d3c1a038d 100644 --- a/mysys/checksum.c +++ b/mysys/checksum.c @@ -18,7 +18,7 @@ #include <my_sys.h> #include <zlib.h> -ha_checksum my_crc_dbug_check= 1; /* Unlikely number */ +ulong my_crc_dbug_check= ~0; /* Cannot happen */ /* Calculate a long checksum for a memoryblock. @@ -34,7 +34,7 @@ ha_checksum my_checksum(ha_checksum crc, const uchar *pos, size_t length) { crc= (ha_checksum) crc32((uint)crc, pos, (uint) length); DBUG_PRINT("info", ("crc: %lu", (ulong) crc)); - if (crc == my_crc_dbug_check) + if ((ulong)crc == my_crc_dbug_check) my_debug_put_break_here(); return crc; } |