Move the initialization of size_a down below the check for a being NULL.
Reported by Klocwork #106.
[Slight change required: in 2.5 Py_ssize_t is used, but 2.4 uses int.]
register PyLongObject *a = (PyLongObject *)aa;
PyStringObject *str;
int i;
- const int size_a = ABS(a->ob_size);
+ int size_a;
char *p;
int bits;
char sign = '\0';
return NULL;
}
assert(base >= 2 && base <= 36);
+ size_a = ABS(a->ob_size);
/* Compute a rough upper bound for the length of the string */
i = base;