summaryrefslogtreecommitdiffstats
path: root/Demo/embed
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/embed')
-rw-r--r--Demo/embed/demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/embed/demo.c b/Demo/embed/demo.c
index 6005f13..bc2406a 100644
--- a/Demo/embed/demo.c
+++ b/Demo/embed/demo.c
@@ -48,7 +48,7 @@ main(int argc, char **argv)
static PyObject *
xyzzy_foo(PyObject *self, PyObject* args)
{
- return PyInt_FromLong(42L);
+ return PyLong_FromLong(42L);
}
static PyMethodDef xyzzy_methods[] = {