summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/extern_python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/extern_python.py b/demo/extern_python.py
index e0ee20d..f315cc5 100644
--- a/demo/extern_python.py
+++ b/demo/extern_python.py
@@ -9,7 +9,7 @@ ffi.set_source("_extern_python_cffi", """
static int my_algo(int n) {
int i, sum = 0;
for (i = 0; i < n; i++)
- sum += f(n);
+ sum += f(i);
return sum;
}
""")