diff options
| author | Brett Cannon <bcannon@gmail.com> | 2011-02-22 20:15:44 +0000 |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2011-02-22 20:15:44 +0000 |
| commit | ffbf24bf0cc297d080d6d68bc809a9c156c49123 (patch) | |
| tree | 784a982964a18755673f3d95a8d98eadb333671e /Objects/floatobject.c | |
| parent | d563a72e39fd9aa04119460ee7981b9f2287a19d (diff) | |
| download | cpython-ffbf24bf0cc297d080d6d68bc809a9c156c49123.tar.gz | |
Issue #8914: fix various warnings from the Clang static analyzer v254.
Diffstat (limited to 'Objects/floatobject.c')
| -rw-r--r-- | Objects/floatobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 09c0e961ba..6d1745e2c3 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -197,7 +197,6 @@ PyFloat_FromString(PyObject *v) Py_DECREF(s_buffer); return NULL; } - last = s + len; } else if (PyObject_AsCharBuffer(v, &s, &len)) { PyErr_SetString(PyExc_TypeError, @@ -2246,7 +2245,7 @@ _PyFloat_Pack8(double x, unsigned char *p, int le) /* Eighth byte */ *p = flo & 0xFF; - p += incr; + /* p += incr; */ /* Done */ return 0; |
