Skip to content

Commit

Permalink
Zig update: snake_case atomic ordering enums as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexu committed Mar 14, 2024
1 parent 30a9b87 commit dfbd7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/record_runner.zig
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ const Stats = struct {
.skip => &self.skip_count,
.invalid_target => &self.invalid_target_count,
};
_ = @atomicRmw(u32, ptr, .Add, 1, .Monotonic);
_ = @atomicRmw(u32, ptr, .Add, 1, .monotonic);
}

fn updateMaxMemUsage(self: *Stats, bytes: usize) void {
_ = @atomicRmw(usize, &self.max_alloc, .Max, bytes, .Monotonic);
_ = @atomicRmw(usize, &self.max_alloc, .Max, bytes, .monotonic);
}
};

Expand Down

0 comments on commit dfbd7c7

Please sign in to comment.