diff options
| author | Andrew Leech <andrew@alelec.net> | 2016-09-14 16:56:26 +1000 |
|---|---|---|
| committer | Andrew Leech <andrew@alelec.net> | 2016-09-14 16:56:26 +1000 |
| commit | 0a4dd37de202b944707893ae92f51a708b0080f4 (patch) | |
| tree | af543f02482c94be66fdf06b51979e0e71fc978b /c/test_c.py | |
| parent | 2e3754a50d9160847e92a688eb16f4da9cfbd3a5 (diff) | |
| download | cffi-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.py | 2 |
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)) |
