Commit 3cbab63a authored by monty@mysql.com's avatar monty@mysql.com

Fixed wrong assert (Got failure in ctype_tis620)

parent 7e161ae0
...@@ -122,7 +122,7 @@ extern void bmove_allign(gptr dst,const gptr src,uint len); ...@@ -122,7 +122,7 @@ extern void bmove_allign(gptr dst,const gptr src,uint len);
#ifdef HAVE_purify #ifdef HAVE_purify
#include <assert.h> #include <assert.h>
#define memcpy_overlap(A,B,C) \ #define memcpy_overlap(A,B,C) \
DBUG_ASSERT((A) == (B) || ((A)+(C)) <= (B) || ((B)+(C)) <= (A)); \ DBUG_ASSERT((A) <= (B) || ((B)+(C)) <= (A)); \
bmove((byte*) key,(byte*) from,(size_t) length); bmove((byte*) key,(byte*) from,(size_t) length);
#else #else
#define memcpy_overlap(A,B,C) memcpy((A), (B), (C)) #define memcpy_overlap(A,B,C) memcpy((A), (B), (C))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment