chiark / gitweb /
basic: use for() loop instead of while()
authorStefan Schweter <stefan@schweter.it>
Wed, 12 Oct 2016 20:48:41 +0000 (22:48 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:55 +0000 (08:50 +0200)
src/basic/gunicode.c

index 5421105..e6ac054 100644 (file)
@@ -26,7 +26,7 @@
 char *
 utf8_prev_char (const char *p)
 {
-  while (1)
+  for (;;)
     {
       p--;
       if ((*p & 0xc0) != 0x80)