summaryrefslogtreecommitdiff
path: root/c/test_c.py
diff options
context:
space:
mode:
authorAndrew Leech <andrew@alelec.net>2016-09-14 16:56:26 +1000
committerAndrew Leech <andrew@alelec.net>2016-09-14 16:56:26 +1000
commit0a4dd37de202b944707893ae92f51a708b0080f4 (patch)
treeaf543f02482c94be66fdf06b51979e0e71fc978b /c/test_c.py
parent2e3754a50d9160847e92a688eb16f4da9cfbd3a5 (diff)
downloadcffi-calculate_variable_array_length.tar.gz
Detect and mark the final variable array in a varsized struct with BS_VARSIZESTRUCT_ARRAYcalculate_variable_array_length
Use this when returning this field/arrtibute of said struct
Diffstat (limited to 'c/test_c.py')
-rw-r--r--c/test_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/test_c.py b/c/test_c.py
index 60fcf42..9ec83ff 100644
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -3172,7 +3172,7 @@ def test_struct_array_no_length():
assert d[1][0] == 'y'
assert d[1][1].type is BArray
assert d[1][1].offset == size_of_int()
- assert d[1][1].bitshift == -1
+ assert d[1][1].bitshift == -3
assert d[1][1].bitsize == -1
#
p = newp(new_pointer_type(BStruct))