summaryrefslogtreecommitdiff
path: root/test/encodechar.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/encodechar.myr')
-rw-r--r--test/encodechar.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/encodechar.myr b/test/encodechar.myr
index eb32e18..ca2ff76 100644
--- a/test/encodechar.myr
+++ b/test/encodechar.myr
@@ -15,7 +15,7 @@ const chartypes = {
while s.len != 0
(c, s) = std.striter(s)
foo = c
- if !std.encode(buf[:std.charlen(c)], c)
+ if std.encode(buf[:std.charlen(c)], c) == 0
std.write(1, "couldn't encode\n")
;;
std.write(1, buf[:std.charlen(c)])