all: fix issue with glfw vulkan createWindowSurface; update to new for loop syntax (#713)
This commit is contained in:
parent
5aecbb0ee6
commit
2b6f3fb1d9
14 changed files with 28 additions and 27 deletions
|
|
@ -13,7 +13,7 @@ pub const Guid = extern union {
|
|||
};
|
||||
pub fn initString(s: []const u8) Guid {
|
||||
var guid = Guid{ .Bytes = undefined };
|
||||
for (hex_offsets) |hex_offset, i| {
|
||||
for (hex_offsets, 0..) |hex_offset, i| {
|
||||
guid.Bytes[i] = decodeHexByte([2]u8{ s[hex_offset], s[hex_offset + 1] });
|
||||
}
|
||||
return guid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue