scope. Previously, s_buffer[] was defined inside the
PyUnicode_Check() scope, but referred to in the outer scope via
assignment to s. This quiets an Insure portability warning.
const char *s, *last, *end;
double x;
char buffer[256]; /* For errors */
+ char s_buffer[256];
int len;
if (PyString_Check(v)) {
len = PyString_GET_SIZE(v);
}
else if (PyUnicode_Check(v)) {
- char s_buffer[256];
-
if (PyUnicode_GET_SIZE(v) >= sizeof(s_buffer)) {
PyErr_SetString(PyExc_ValueError,
"float() literal too large to convert");