aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-02-11 14:01:11 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-02-11 14:01:11 -0500
commitf7173f4f081bdc200732cc9f7d58d3d54f9b0205 (patch)
tree88a20049672953760a86f463fbf9a335cdc6346c /std
parent39287d7346436a87ce785866befa77351bf2fc85 (diff)
downloadzig-f7173f4f081bdc200732cc9f7d58d3d54f9b0205.tar.gz
zig-f7173f4f081bdc200732cc9f7d58d3d54f9b0205.zip
fix crash on string literal with character code >= 128
See #258
Diffstat (limited to 'std')
-rw-r--r--std/io.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io.zig b/std/io.zig
index 291563cbb4..1befeb6dd2 100644
--- a/std/io.zig
+++ b/std/io.zig
@@ -156,7 +156,7 @@ pub const OutStream = struct {
width = 0;
state = State.Integer;
},
- else => @compileError("Unknown format character: " ++ c),
+ else => @compileError("Unknown format character: " ++ []u8{c}),
},
State.CloseBrace => switch (c) {
'}' => {