diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-02-24 02:07:59 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-02-24 02:07:59 +1300 |
commit | 258e5eec16132222f8c02270ab17de75daf572ce (patch) | |
tree | 07c8549a405d7f173b8ca8e41070e06b2e2a17d8 | |
parent | Remove redundant NUL char check (diff) | |
download | wtf8-258e5eec16132222f8c02270ab17de75daf572ce.tar.gz wtf8-258e5eec16132222f8c02270ab17de75daf572ce.zip |
Wrap assignment truth test per GCC's fretting
-rw-r--r-- | wtf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'); |