diff --git a/tests/pattern_language/include/test_patterns/test_pattern_bitfields.hpp b/tests/pattern_language/include/test_patterns/test_pattern_bitfields.hpp index 05f12090b..302ce070c 100644 --- a/tests/pattern_language/include/test_patterns/test_pattern_bitfields.hpp +++ b/tests/pattern_language/include/test_patterns/test_pattern_bitfields.hpp @@ -10,10 +10,10 @@ namespace hex::test { auto testBitfield = create("TestBitfield", "testBitfield", 0x12, (4 * 4) / 8, nullptr); testBitfield->setEndian(std::endian::big); testBitfield->setFields({ - create("", "a", 0x12, 0, 4, nullptr), - create("", "b", 0x12, 4, 4, nullptr), - create("", "c", 0x12, 8, 4, nullptr), - create("", "d", 0x12, 12, 4, nullptr) + create("", "a", 0x12, 0, 4, testBitfield, nullptr), + create("", "b", 0x12, 4, 4, testBitfield, nullptr), + create("", "c", 0x12, 8, 4, testBitfield, nullptr), + create("", "d", 0x12, 12, 4, testBitfield, nullptr) }); addPattern(testBitfield);