authorgravatar for pftbest@gmail.comVadzim Dambrouski <pftbest@gmail.com> 2025-04-19 23:10:51+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2025-04-19 23:10:51+02:00
log86d354618450d97b4a53735c0b222fcee655f7e8
tree4c8dd367907aafe42dbf02ab99bcef866a35baf2
parent8f8f37fb0fe0ab8d98ca54ba6b51ce3d84222082
signaturebadge-check Signed by PGP key B5690EEEBB952194

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>

1 files changed, 2 insertions(+), 2 deletions(-)

lib/fuzzer/web/main.zig+2-2
...@@ -58,7 +58,7 @@ export fn alloc(n: usize) [*]u8 {...@@ -58,7 +58,7 @@ export fn alloc(n: usize) [*]u8 {
58 return slice.ptr;58 return slice.ptr;
59}59}
6060
61var message_buffer: std.ArrayListAlignedUnmanaged(u8, @alignOf(u64)) = .empty;61var message_buffer: std.ArrayListAlignedUnmanaged(u8, .of(u64)) = .empty;
6262
63/// Resizes the message buffer to be the correct length; returns the pointer to63/// Resizes the message buffer to be the correct length; returns the pointer to
64/// the query string.64/// the query string.
...@@ -376,7 +376,7 @@ var coverage = Coverage.init;...@@ -376,7 +376,7 @@ var coverage = Coverage.init;
376/// Index of type `SourceLocationIndex`.376/// Index of type `SourceLocationIndex`.
377var coverage_source_locations: std.ArrayListUnmanaged(Coverage.SourceLocation) = .empty;377var coverage_source_locations: std.ArrayListUnmanaged(Coverage.SourceLocation) = .empty;
378/// Contains the most recent coverage update message, unmodified.378/// Contains the most recent coverage update message, unmodified.
379var recent_coverage_update: std.ArrayListAlignedUnmanaged(u8, @alignOf(u64)) = .empty;379var recent_coverage_update: std.ArrayListAlignedUnmanaged(u8, .of(u64)) = .empty;
380380
381fn updateCoverage(381fn updateCoverage(
382 directories: []const Coverage.String,382 directories: []const Coverage.String,