summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-01-05 10:54:11 +0100
committerGitHub <noreply@github.com>2019-01-05 10:54:11 +0100
commita3d3001efad0a30b7417cbb63a41a7db77480ac4 (patch)
tree6340ef0cacbf9b8d27a024aa1184caf5481dd413
parent4b64bbe1c792c0b0f40d97bb98e4192e28923ca2 (diff)
parentc2c1ba77fefa98764ff461bb67563d57937e0059 (diff)
downloadcython-a3d3001efad0a30b7417cbb63a41a7db77480ac4.tar.gz
Merge pull request #2783 from QuLogic/fix-lvalue_refs
Fix crash in lvalue_refs test.
-rw-r--r--tests/run/lvalue_refs.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/lvalue_refs.pyx b/tests/run/lvalue_refs.pyx
index 7e3b4df28..d42f2407e 100644
--- a/tests/run/lvalue_refs.pyx
+++ b/tests/run/lvalue_refs.pyx
@@ -15,7 +15,7 @@ cdef void foo(vector[dpp] &bar, vector[vector[dp]] &baz) nogil:
def test_lvalue_ref_assignment():
cdef vector[dpp] bar
cdef vector[vector[dp]] baz
- cdef vector[double] data
+ cdef vector[double] data = [0.0]
cdef dp bongle = &data[0]
bar.resize(1)