except: try_array should use non-zero result array size
This commit is contained in:
parent
acedac53d0
commit
b1cf5a7c2a
@ -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<ValueT> {
|
||||
values + 0,
|
||||
values + found
|
||||
&values[0],
|
||||
&values[found]
|
||||
};
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user