*fixed a memory comparison issue.

This commit is contained in:
Wang Renxin 2016-07-20 14:50:41 +08:00 committed by GitHub
parent 18a76ba126
commit a9547fb689

View File

@ -3020,8 +3020,8 @@ static void mb_free(void* p) {
/* Compare two chunks of memory */ /* Compare two chunks of memory */
static int mb_memcmp(void* l, void* r, size_t s) { static int mb_memcmp(void* l, void* r, size_t s) {
char* lc = (char*)l; unsigned char* lc = (unsigned char*)l;
char* rc = (char*)r; unsigned char* rc = (unsigned char*)r;
int i = 0; int i = 0;
if(mb_is_little_endian()) { if(mb_is_little_endian()) {