chiark
/
gitweb
/
~mdw
/
pyke
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1bcbe4f
)
Fix a few minor warnings.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 23 Jun 2013 08:04:24 +0000
(09:04 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 23 Jun 2013 08:04:24 +0000
(09:04 +0100)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index 96a4052df31ed847ee277208339da5a5eab6b2df..f56c7fd0c52524665deb176d3ac5200b978903dc 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-163,7
+163,7
@@
void *newtype(PyTypeObject *metaty,
ty->ht_name = PyString_FromString(ty->ht_type.tp_name);
if (ty->ht_name)
ty->ht_type.tp_name = PyString_AS_STRING(ty->ht_name);
-
PyObject_INIT(&ty->ht_type, metaty
);
+
DISCARD(PyObject_INIT(&ty->ht_type, metaty)
);
Py_INCREF(metaty);
return (ty);
}