Wrangling casts when adding signed values to an unsigned integer

this is unrelated to the main point here, but fyi this works: (even in release mode)

std.debug.assert(VK_SUCCESS == vkFoo(u64_handle, some_u16, &some_u32));

(see e.g. Key semantics of std.debug.assert and surrounding discussion)

2 Likes