summaryrefslogtreecommitdiff
path: root/Objects/frameobject.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-04-19 03:44:17 +0000
committerBrett Cannon <bcannon@gmail.com>2007-04-19 03:44:17 +0000
commit9e68469c17e1b7d8a58aeee5e38fb0dfb7172f3d (patch)
tree2cdb55e8ffb94af1d6ac10e6cb2e5d6b263fd6de /Objects/frameobject.c
parent3fd0d0ebc5749ba4fd527ad173f1ee7b0b12f4e5 (diff)
downloadcpython-9e68469c17e1b7d8a58aeee5e38fb0dfb7172f3d.tar.gz
Silence a compiler warning about incompatible pointer types.
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r--Objects/frameobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 2a5ccd8a3e..2153cd8e1f 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -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);