quick fix in testcase to avoid C compiler warnings
authorLisandro Dalcin <dalcinl@gmail.com>
Fri, 6 Feb 2009 13:39:43 +0000 (11:39 -0200)
committerLisandro Dalcin <dalcinl@gmail.com>
Fri, 6 Feb 2009 13:39:43 +0000 (11:39 -0200)
tests/run/pure.pyx

index 90a9d727b355d0be8e8878794d3e4b262070afe4..44b299613e03f728bc56f39a5b54c76f8bacae33 100644 (file)
@@ -53,7 +53,7 @@ def test_declare(n):
     y = cython.declare(cython.int, n)
     if cython.compiled:
         cython.declare(xx=cython.int, yy=cython.long)
-        sizeof(xx)
+        i = sizeof(xx)
     ptr = cython.declare(cython.p_int, cython.address(y))
     return y, ptr[0]