except: try_array should use non-zero result array size

This commit is contained in:
Danny Robson 2017-09-07 12:50:16 +10:00
parent acedac53d0
commit b1cf5a7c2a

View File

@ -103,13 +103,13 @@ namespace cruft::vk {
>; >;
ValueT values[expected]; ValueT values[expected];
uint32_t found = 0; uint32_t found = expected;
try_func (func, args..., &found, values + 0); try_func (func, args..., &found, &values[0]);
CHECK_EQ (expected, found); CHECK_EQ (expected, found);
return ContainerT<ValueT> { return ContainerT<ValueT> {
values + 0, &values[0],
values + found &values[found]
}; };
} }
}; };