aboutsummaryrefslogtreecommitdiff
path: root/std/std.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-08 02:52:27 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-08 02:52:27 -0700
commite1f498212c74c48d740b959484123478dec748ff (patch)
treefe16f946e263c2474fe081c6f02f2aff8c9162bc /std/std.zig
parent9aea99a999997e223307d8559e0ff9fa613839a3 (diff)
downloadzig-e1f498212c74c48d740b959484123478dec748ff.tar.gz
zig-e1f498212c74c48d740b959484123478dec748ff.zip
fix codegen for implicit maybe wrap
Diffstat (limited to 'std/std.zig')
-rw-r--r--std/std.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/std.zig b/std/std.zig
index 333896cadc..411f59b423 100644
--- a/std/std.zig
+++ b/std/std.zig
@@ -42,7 +42,7 @@ pub fn print_i64(x: i64) -> isize {
/*
// TODO error handling
pub fn readline(buf: []u8) -> ?[]u8 {
- var index = 0;
+ var index : usize = 0;
while (index < buf.len) {
// TODO unknown size array indexing operator
const err = read(stdin_fileno, &buf.ptr[index], 1);