1
0
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:
drh
2025-03-04 17:06:38 +00:00
parent 707b713adc
commit 870ff768a8
3 changed files with 8 additions and 8 deletions

View File

@ -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",