Skip to content

Commit 86d3546

Browse files
pftbestalexrp
andauthored
Fix compile error in Fuzzer web-ui (ziglang#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 <[email protected]> --------- Co-authored-by: Alex Rønne Petersen <[email protected]>
1 parent 8f8f37f commit 86d3546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fuzzer/web/main.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export fn alloc(n: usize) [*]u8 {
5858
return slice.ptr;
5959
}
6060

61-
var message_buffer: std.ArrayListAlignedUnmanaged(u8, @alignOf(u64)) = .empty;
61+
var message_buffer: std.ArrayListAlignedUnmanaged(u8, .of(u64)) = .empty;
6262

6363
/// Resizes the message buffer to be the correct length; returns the pointer to
6464
/// the query string.
@@ -376,7 +376,7 @@ var coverage = Coverage.init;
376376
/// Index of type `SourceLocationIndex`.
377377
var coverage_source_locations: std.ArrayListUnmanaged(Coverage.SourceLocation) = .empty;
378378
/// Contains the most recent coverage update message, unmodified.
379-
var recent_coverage_update: std.ArrayListAlignedUnmanaged(u8, @alignOf(u64)) = .empty;
379+
var recent_coverage_update: std.ArrayListAlignedUnmanaged(u8, .of(u64)) = .empty;
380380

381381
fn updateCoverage(
382382
directories: []const Coverage.String,

0 commit comments

Comments
 (0)