summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorStefan Schweter <stefan@schweter.it>2016-10-12 22:48:41 +0200
committerStefan Schweter <stefan@schweter.it>2016-10-12 22:48:41 +0200
commite7f1334f07e361290f3c682565963f8c0166f132 (patch)
treef7b63feeea0cb30d048f79939419da97b63bc84c /src/basic
parent6612379adf2eceb7275cec26b5441328f56407c5 (diff)
basic: use for() loop instead of while()
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/gunicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/gunicode.c b/src/basic/gunicode.c
index 542110503f..e6ac0545a4 100644
--- a/src/basic/gunicode.c
+++ b/src/basic/gunicode.c
@@ -26,7 +26,7 @@
char *
utf8_prev_char (const char *p)
{
- while (1)
+ for (;;)
{
p--;
if ((*p & 0xc0) != 0x80)