Always return?
Ian Caddy
ianc at microsol.iinet.net.au
Thu Sep 18 10:04:49 UTC 2003
Hi,
In this function size is an unsigned32 so effectively the comparison is
to compare whether size is getting close to the limit of an unsigned32.
The negative number is converted to an unsigned32 which causes it to be
a very large positive number for the comparison.
Hope this helps,
Ian Caddy
shannon wrote:
> if ( size >= (-1 - HEAP_BLOCK_USED_OVERHEAD) )
> return( NULL );
>
> This is a sentence in heapallocate.c. I think size is more than 0, and (-1-HEAP_BLOCK_USED_OVERHEAD) equals -9. Then the routine will be returned. Is what I think right? However, should the routine exit here?
>
>
> shannon
> 2003-09-18
>
>
>
More information about the users
mailing list