diff options
author | Armin Rigo <arigo@tunes.org> | 2015-11-20 17:18:11 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-11-20 17:18:11 +0100 |
commit | 5f2b11cd693cb67ada74c910236aae247e1184af (patch) | |
tree | 4abb36f850671e8a8fe87bcfd095250d12fd0405 | |
parent | b77bbd744bc0c63491acde920138c713f879910a (diff) | |
download | cffi-5f2b11cd693cb67ada74c910236aae247e1184af.tar.gz |
meh, fix demo
-rw-r--r-- | demo/extern_python.py | 2 | ||||
-rw-r--r-- | doc/source/using.rst | 2 |
2 files changed, 2 insertions, 2 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; } """) diff --git a/doc/source/using.rst b/doc/source/using.rst index 868adc6..9a8c420 100644 --- a/doc/source/using.rst +++ b/doc/source/using.rst @@ -592,7 +592,7 @@ useful if the logic in ``my_algo()`` is much more complex):: static int my_algo(int n) { int i, sum = 0; for (i = 0; i < n; i++) - sum += f(n); + sum += f(i); return sum; } """) |