diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-10-18 10:10:22 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-10-18 10:10:55 +0200 |
commit | 740ba90ea8d7f420be803c0c3541d94b399f37cc (patch) | |
tree | 5fa68cd006b1dd665e258b2caa513060c9b7442e | |
parent | 01e00f6cb9ac77d26f92da777d25cebef748eaa7 (diff) | |
download | cython-740ba90ea8d7f420be803c0c3541d94b399f37cc.tar.gz |
Try to fix a C++ test failure.
-rw-r--r-- | tests/run/libcpp_algo.pyx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run/libcpp_algo.pyx b/tests/run/libcpp_algo.pyx index 2b0a352fe..17f0cc79d 100644 --- a/tests/run/libcpp_algo.pyx +++ b/tests/run/libcpp_algo.pyx @@ -1,3 +1,4 @@ +# mode: run # tag: cpp from libcpp cimport bool @@ -6,7 +7,7 @@ from libcpp.vector cimport vector # XXX should use std::greater, but I don't know how to wrap that. -cdef inline bool greater(int x, int y): +cdef inline bool greater(const int &x, const int &y): return x > y |