diff --git a/except.hpp b/except.hpp index f0272d5..acfbf06 100644 --- a/except.hpp +++ b/except.hpp @@ -103,13 +103,13 @@ namespace cruft::vk { >; ValueT values[expected]; - uint32_t found = 0; - try_func (func, args..., &found, values + 0); + uint32_t found = expected; + try_func (func, args..., &found, &values[0]); CHECK_EQ (expected, found); return ContainerT { - values + 0, - values + found + &values[0], + &values[found] }; } };