diff options
| author | Vadzim Dambrouski <pftbest@gmail.com> | 2025-04-19 23:10:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-19 23:10:51 +0200 |
| commit | 86d354618450d97b4a53735c0b222fcee655f7e8 (patch) | |
| tree | 4c8dd367907aafe42dbf02ab99bcef866a35baf2 /lib/fuzzer | |
| parent | 8f8f37fb0fe0ab8d98ca54ba6b51ce3d84222082 (diff) | |
| download | zig-86d354618450d97b4a53735c0b222fcee655f7e8.tar.gz zig-86d354618450d97b4a53735c0b222fcee655f7e8.zip | |
Fix compile error in Fuzzer web-ui (#23605)
* Fix compile error in Fuzzer web-ui
The error was:
```
error: expected type '?mem.Alignment', found 'comptime_int'
```
* Apply suggestions from code review
`.of` call is shorter and clearer
Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
---------
Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
Diffstat (limited to 'lib/fuzzer')
| -rw-r--r-- | lib/fuzzer/web/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuzzer/web/main.zig b/lib/fuzzer/web/main.zig index c6d6810e1b..5b16b0532c 100644 --- a/lib/fuzzer/web/main.zig +++ b/lib/fuzzer/web/main.zig @@ -58,7 +58,7 @@ export fn alloc(n: usize) [*]u8 { return slice.ptr; } -var message_buffer: std.ArrayListAlignedUnmanaged(u8, @alignOf(u64)) = .empty; +var message_buffer: std.ArrayListAlignedUnmanaged(u8, .of(u64)) = .empty; /// Resizes the message buffer to be the correct length; returns the pointer to /// the query string. @@ -376,7 +376,7 @@ var coverage = Coverage.init; /// Index of type `SourceLocationIndex`. var coverage_source_locations: std.ArrayListUnmanaged(Coverage.SourceLocation) = .empty; /// Contains the most recent coverage update message, unmodified. -var recent_coverage_update: std.ArrayListAlignedUnmanaged(u8, @alignOf(u64)) = .empty; +var recent_coverage_update: std.ArrayListAlignedUnmanaged(u8, .of(u64)) = .empty; fn updateCoverage( directories: []const Coverage.String, |
