From b1cf5a7c2a34f910e2ccea4228502437a12295c6 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 7 Sep 2017 12:50:16 +1000 Subject: [PATCH] except: try_array should use non-zero result array size --- except.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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] }; } };