basic: use for() loop instead of while()

This commit is contained in:
Stefan Schweter 2016-10-12 22:48:41 +02:00
parent 6612379adf
commit e7f1334f07

View file

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