diff options
| author | Jan Prudil <57442prudil@sstebrno.eu> | 2020-10-17 14:09:59 +0200 |
|---|---|---|
| committer | Jan Prudil <57442prudil@sstebrno.eu> | 2020-10-17 14:09:59 +0200 |
| commit | aadccc4206ea605719de789bc7c9c48557d02331 (patch) | |
| tree | 631f4d25f6c8bf6cefdcbe58f3ac9f61434b6402 /lib/std/os/bits/linux.zig | |
| parent | 245d98d32dd29e80de9732f415a4731748008acf (diff) | |
| download | zig-aadccc4206ea605719de789bc7c9c48557d02331.tar.gz zig-aadccc4206ea605719de789bc7c9c48557d02331.zip | |
Make std.meta.Int accept a signedness parameter
Diffstat (limited to 'lib/std/os/bits/linux.zig')
| -rw-r--r-- | lib/std/os/bits/linux.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig index a79fc0b7de..6f2c68b63b 100644 --- a/lib/std/os/bits/linux.zig +++ b/lib/std/os/bits/linux.zig @@ -1073,7 +1073,7 @@ pub const dl_phdr_info = extern struct { pub const CPU_SETSIZE = 128; pub const cpu_set_t = [CPU_SETSIZE / @sizeOf(usize)]usize; -pub const cpu_count_t = std.meta.Int(false, std.math.log2(CPU_SETSIZE * 8)); +pub const cpu_count_t = std.meta.Int(.unsigned, std.math.log2(CPU_SETSIZE * 8)); pub fn CPU_COUNT(set: cpu_set_t) cpu_count_t { var sum: cpu_count_t = 0; |
