[Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.175,2.176
Barry Warsaw
python-dev@python.org
Thu, 17 Aug 2000 22:02:19 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv29584
Modified Files:
bltinmodule.c
Log Message:
comples_from_string(): Move s_buffer[] up to the top-level function
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.
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.175
retrieving revision 2.176
diff -C2 -r2.175 -r2.176
*** bltinmodule.c 2000/08/12 21:35:36 2.175
--- bltinmodule.c 2000/08/18 05:02:16 2.176
***************
*** 411,414 ****
--- 411,415 ----
int sign;
char buffer[256]; /* For errors */
+ char s_buffer[256];
int len;
***************
*** 418,423 ****
}
else if (PyUnicode_Check(v)) {
- char s_buffer[256];
-
if (PyUnicode_GET_SIZE(v) >= sizeof(s_buffer)) {
PyErr_SetString(PyExc_ValueError,
--- 419,422 ----