intptr should be unsigned
This commit is contained in:
parent
a468337924
commit
533d274c03
@ -972,11 +972,11 @@ typedef unsigned long long my_ulonglong;
|
||||
#endif
|
||||
|
||||
#if SIZEOF_CHARP == SIZEOF_INT
|
||||
typedef int intptr;
|
||||
typedef unsigned int intptr;
|
||||
#elif SIZEOF_CHARP == SIZEOF_LONG
|
||||
typedef long intptr;
|
||||
typedef unsigned long intptr;
|
||||
#elif SIZEOF_CHARP == SIZEOF_LONG_LONG
|
||||
typedef long long intptr;
|
||||
typedef unsigned long long intptr;
|
||||
#else
|
||||
#error sizeof(void *) is neither sizeof(int) nor sizeof(long) nor sizeof(long long)
|
||||
#endif
|
||||
|
@ -9038,7 +9038,7 @@ static uchar *dump_chunk(uchar *buffer, uchar *ptr)
|
||||
}
|
||||
{
|
||||
intptr offset= ptr - buffer;
|
||||
DBUG_ASSERT(offset >= 0 && offset <= UINT_MAX16);
|
||||
DBUG_ASSERT(offset <= UINT_MAX16);
|
||||
length= translog_get_total_chunk_length(buffer, (uint16)offset);
|
||||
}
|
||||
printf(" Length %u\n", length);
|
||||
|
Loading…
x
Reference in New Issue
Block a user