diff Objects/floatobject.c @ 68102:e2f96bd29252

Issue #8914: fix various warnings from the Clang static analyzer v254.
author Brett Cannon <bcannon@gmail.com>
date Tue, 22 Feb 2011 20:15:44 +0000
parents b32d19eb4338
children b39270c6b8d1
line wrap: on
line diff
--- a/Objects/floatobject.c	Tue Feb 22 19:24:33 2011 +0000
+++ b/Objects/floatobject.c	Tue Feb 22 20:15:44 2011 +0000
@@ -197,7 +197,6 @@
             Py_DECREF(s_buffer);
             return NULL;
         }
-        last = s + len;
     }
     else if (PyObject_AsCharBuffer(v, &s, &len)) {
         PyErr_SetString(PyExc_TypeError,
@@ -2246,7 +2245,7 @@
 
         /* Eighth byte */
         *p = flo & 0xFF;
-        p += incr;
+        /* p += incr; */
 
         /* Done */
         return 0;