diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-28 21:07:13 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-12 13:22:02 -0300 |
| commit | 590ba7b9b579b97e34b51ab7e3460ebc85713343 (patch) | |
| tree | 6a73a7570ff4f79f41deff078455877b9bc6571b /src/host/fields.zig | |
| parent | bc8e6eb1bfef0c5e9b3c40fc1e4fd5a1659e2b03 (diff) | |
| download | sketchbook-590ba7b9b579b97e34b51ab7e3460ebc85713343.tar.gz sketchbook-590ba7b9b579b97e34b51ab7e3460ebc85713343.zip | |
sketchbook: Zig 0.17, a Store on disk, requests, a scope (waveform, spectrum, spectrogram), audio codecs and fonts, web host
Diffstat (limited to 'src/host/fields.zig')
| -rw-r--r-- | src/host/fields.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/fields.zig b/src/host/fields.zig index 215f176..ba8fc03 100644 --- a/src/host/fields.zig +++ b/src/host/fields.zig @@ -100,7 +100,7 @@ test "fields format, parse and compare by kind" { const S = extern struct { mood: enum(u32) { calm, angry = 5 } = .calm, x: i16 = -3, speed: f32 = 1.5, on: bool = false }; var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); defer arena.deinit(); - const layout = try @import("memory.zig").Layout.copy(arena.allocator(), abi.layout.of(S, .forbidden)); + const layout = try @import("memory.zig").Layout.copy(arena.allocator(), abi.layout.of(S, .state)); var s: S = .{}; const bytes = std.mem.asBytes(&s); try std.testing.expect(matches(layout.find("x").?, bytes, "-3")); |
