| author | |
| committer | |
| log | d31bda13cb1ece7dd2ba22339172a8704a84823c |
| tree | bf7e5b7a613a8736e467d8c4f7aece44177b291f |
| parent | 339b628d4c8a850c6d819e88fb3b84b86e8b5927 |
This fixes potential issues and unintended coercions in other areas,
such as std.ArrayList.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/atomic.zig+1-1| ... | ... | @@ -482,7 +482,7 @@ pub fn cacheLineForCpu(cpu: std.Target.Cpu) u16 { |
| 482 | 482 | /// |
| 483 | 483 | /// https://en.wikipedia.org/wiki/False_sharing |
| 484 | 484 | /// https://github.com/golang/go/search?q=CacheLinePadSize |
| 485 | pub const cache_line = cacheLineForCpu(builtin.cpu); | |
| 485 | pub const cache_line: comptime_int = cacheLineForCpu(builtin.cpu); | |
| 486 | 486 | |
| 487 | 487 | test "current CPU has a cache line size" { |
| 488 | 488 | _ = cache_line; |