chiark
/
gitweb
/
~mdw
/
pyke
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
utils.c: Raise exceptions from `convTHING' with null arguments.
[pyke]
/
util.c
diff --git
a/util.c
b/util.c
index d4b7fb060d189ffbea18e68cc1f4d572cb7ef391..7118bfb7b59f64d3408bc4a533a2c7170600f1ff 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-133,6
+133,7
@@
int convk64(PyObject *o, void *pp)
int rc = 0;
uint32 lo, hi;
+ if (!o) VALERR("can't delete");
if (init_i32()) goto end;
if ((i = PyNumber_Int(o)) == 0) goto end;
lo = PyInt_AsUnsignedLongMask(i);