Message10804
Logged In: YES
user_id=31435
The code patch has some problems: you can't assume any
relation between a size_t and an unsigned long; C simply
doesn't define how big size_t is, and relative sizes do
vary on 64-bit platforms. However that gets fixed, if you
decide it's "too big", var should be set to NULL (not 0 --
this is a "Guido thing" <wink>), and no exception should be
set. It's the caller's responsibility to check var for
NULL after the macro is invoked, and set an appropriate
exception. listobject.c sometimes doesn't check the result
for NULL, but that should only be when it knows it's
*shrinking* a memory area, so that realloc can't fail. |
|
Date |
User |
Action |
Args |
2007-08-23 14:01:23 | admin | link | issue556025 messages |
2007-08-23 14:01:23 | admin | create | |
|