diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-05-11 13:18:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-05-11 13:18:28 -0700 |
| commit | 6b7ffd4cbe1006013cda4a36c9659c4822ae1b53 (patch) | |
| tree | 4141251b2cacf2e9ac02ced452583935e01111ad /std | |
| parent | 22888ca5246acb7dc7afac602488b17f01790bfb (diff) | |
| download | zig-6b7ffd4cbe1006013cda4a36c9659c4822ae1b53.tar.gz zig-6b7ffd4cbe1006013cda4a36c9659c4822ae1b53.zip | |
builtin: use explicit type instead of typeof function
Diffstat (limited to 'std')
| -rw-r--r-- | std/builtin.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/builtin.zig b/std/builtin.zig index 0a712c7755..e2363cef18 100644 --- a/std/builtin.zig +++ b/std/builtin.zig @@ -3,7 +3,7 @@ #debug_safety(false) export fn memset(dest: &u8, c: u8, n: isize) -> &u8 { - var index : @typeof(n) = 0; + var index: isize = 0; while (index != n) { dest[index] = c; index += 1; @@ -13,7 +13,7 @@ export fn memset(dest: &u8, c: u8, n: isize) -> &u8 { #debug_safety(false) export fn memcpy(noalias dest: &u8, noalias src: &const u8, n: isize) -> &u8 { - var index : @typeof(n) = 0; + var index: isize = 0; while (index != n) { dest[index] = src[index]; index += 1; |
