~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*.pyx, defs.pxi, grim.h: Add awful casts to `PyObject_AsReadBuffer'.
[mLib-python]
/
sym.pyx
diff --git
a/sym.pyx
b/sym.pyx
index
9e97b7b
..
48ba3f0
100644
(file)
--- a/
sym.pyx
+++ b/
sym.pyx
@@
-36,7
+36,7
@@
cdef class SymTable (Mapping):
cdef void *p
cdef Py_ssize_t n
cdef _sym_entry *e
- PyObject_AsReadBuffer(key, &p, &n)
+ PyObject_AsReadBuffer(key,
<cvp *>
&p, &n)
if f:
f[0] = 0
e = <_sym_entry *>sym_find(&me._t, <char *>p, n, PSIZEOF(e), f)