mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
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>
This commit is contained in:
parent
8f8f37fb0f
commit
86d3546184
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user