~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*.[ch]: Some preparatory reformatting for the Python 3 porting.
[catacomb-python]
/
mp.c
diff --git
a/mp.c
b/mp.c
index
daa91ce
..
3f96a4e
100644
(file)
--- a/
mp.c
+++ b/
mp.c
@@
-228,7
+228,8
@@
mp *tomp(PyObject *o)
if ((x = G_TOINT(GE_G(o), MP_NEW, GE_X(o))) == 0)
return (0);
return (x);
- } else if (PyInt_Check(o))
+ }
+ else if (PyInt_Check(o))
return (mp_fromlong(MP_NEW, PyInt_AS_LONG(o)));
else if ((l = PyNumber_Long(o)) != 0) {
x = mp_frompylong(l);