]> granicus.if.org Git - python/commitdiff
Silence a compiler warning about incompatible pointer types.
authorBrett Cannon <bcannon@gmail.com>
Thu, 19 Apr 2007 03:44:17 +0000 (03:44 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 19 Apr 2007 03:44:17 +0000 (03:44 +0000)
Objects/frameobject.c

index 2a5ccd8a3efb8ce1697dc48a57c7c82a0cf515bd..2153cd8e1f89356185e71cf0fdd6e3bec5a0f293 100644 (file)
@@ -137,7 +137,7 @@ frame_setlineno(PyFrameObject *f, PyObject* p_new_lineno)
        }
 
        /* We're now ready to look at the bytecode. */
-       PyString_AsStringAndSize(f->f_code->co_code, &code, &code_len);
+       PyString_AsStringAndSize(f->f_code->co_code, (char **)&code, &code_len);
        min_addr = MIN(new_lasti, f->f_lasti);
        max_addr = MAX(new_lasti, f->f_lasti);