aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2019-12-09 21:56:19 +0100
committerAndrew Kelley <andrew@ziglang.org>2019-12-10 11:09:41 -0500
commit4b4fbe388732da795c924293b4d1af3d9ca5ea69 (patch)
tree278ddda90440c1f68aee5acb7318371aa2a2a7ad /lib/std/os.zig
parentf0ee0688f20dd012b4e069324abdba081ff19369 (diff)
downloadzig-4b4fbe388732da795c924293b4d1af3d9ca5ea69.tar.gz
zig-4b4fbe388732da795c924293b4d1af3d9ca5ea69.zip
Replace @typeOf with @TypeOf in all zig source
This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
Diffstat (limited to 'lib/std/os.zig')
-rw-r--r--lib/std/os.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig
index 8d6c7dd05e..04de59d6e1 100644
--- a/lib/std/os.zig
+++ b/lib/std/os.zig
@@ -2974,7 +2974,7 @@ pub fn res_mkquery(
// Make a reasonably unpredictable id
var ts: timespec = undefined;
clock_gettime(CLOCK_REALTIME, &ts) catch {};
- const UInt = @IntType(false, @typeOf(ts.tv_nsec).bit_count);
+ const UInt = @IntType(false, @TypeOf(ts.tv_nsec).bit_count);
const unsec = @bitCast(UInt, ts.tv_nsec);
const id = @truncate(u32, unsec + unsec / 65536);
q[0] = @truncate(u8, id / 256);