~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
field.c: Convert external-format field element to hex/octal.
[catacomb-python]
/
field.c
diff --git
a/field.c
b/field.c
index
024c578
..
fae0365
100644
(file)
--- a/
field.c
+++ b/
field.c
@@
-274,7
+274,7
@@
static PyObject *fe_pylong(PyObject *x)
#define BASEOP(name, radix, pre) \
static PyObject *fe_py##name(PyObject *x) { \
mp *xx = F_OUT(FE_F(x), MP_NEW, FE_X(x)); \
#define BASEOP(name, radix, pre) \
static PyObject *fe_py##name(PyObject *x) { \
mp *xx = F_OUT(FE_F(x), MP_NEW, FE_X(x)); \
- PyObject *rc = mp_topystring(
FE_X(x), radix, 0, pre, 0);
\
+ PyObject *rc = mp_topystring(
xx, radix, 0, pre, 0);
\
MP_DROP(xx); \
return (rc); \
}
MP_DROP(xx); \
return (rc); \
}