aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-02-24 02:07:59 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-02-24 02:07:59 +1300
commit258e5eec16132222f8c02270ab17de75daf572ce (patch)
tree07c8549a405d7f173b8ca8e41070e06b2e2a17d8
parentRemove redundant NUL char check (diff)
downloadwtf8-258e5eec16132222f8c02270ab17de75daf572ce.tar.gz
wtf8-258e5eec16132222f8c02270ab17de75daf572ce.zip
Wrap assignment truth test per GCC's fretting
-rw-r--r--wtf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wtf8.c b/wtf8.c
index e400db9..68de1ca 100644
--- a/wtf8.c
+++ b/wtf8.c
@@ -18,7 +18,7 @@ void print_octets(char *s) {
/*
* Iterate through the string, printing each octet, ending with a newline
*/
- while (c = *s++)
+ while ((c = *s++))
printf("%c%02x", (is_utf8_cont(c) ? '-' : ' '), c);
putchar('\n');