diff options
Diffstat (limited to 'test/io/read_test.cpp')
| -rw-r--r-- | test/io/read_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io/read_test.cpp b/test/io/read_test.cpp index aa731e1e55..d3ea8b7765 100644 --- a/test/io/read_test.cpp +++ b/test/io/read_test.cpp @@ -109,7 +109,7 @@ void test_read_bigtest() auto tagptr = reader.read_payload(tag_type::Compound); ASSERT(tagptr->get_type() == tag_type::Compound); - const tag_compound& comp = static_cast<const tag_compound&>(*tagptr); + const tag_compound& comp = tagptr->as<tag_compound>(); ASSERT(comp.size() == 13); |
