mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Fix pointless comparison of an unsigned integer to less than zero in Lemon.
FossilOrigin-Name: 559560da45d0e22ccc6f47dd9eb5ba16851ea444da7e4e951f07b8aa6f6b3753
This commit is contained in:
@ -88,7 +88,7 @@ static MemChunk *memChunkList = 0;
|
||||
*/
|
||||
static void *lemon_malloc(size_t nByte){
|
||||
MemChunk *p;
|
||||
if( nByte<0 ) return 0;
|
||||
/* if( nByte<0 ) return 0; -- size_t is unsigned */
|
||||
p = malloc( nByte + sizeof(MemChunk) );
|
||||
if( p==0 ){
|
||||
fprintf(stderr, "Out of memory. Failed to allocate %lld bytes.\n",
|
||||
|
Reference in New Issue
Block a user