From a363cb9b9111aed22d105adb0e7a8e9caab9bbe3 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 17 Feb 2013 09:01:46 +0100 Subject: Fix braces in if-else statements From the Linux kernel coding guidelines: Do not unnecessarily use braces where a single statement will do. [...] This does not apply if one branch of a conditional statement is a single statement. Use braces in both branches. Signed-off-by: Lukas Fleischer --- src/utf8.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/utf8.c') diff --git a/src/utf8.c b/src/utf8.c index 6ec8eca..64b59d1 100644 --- a/src/utf8.c +++ b/src/utf8.c @@ -313,8 +313,9 @@ int utf8_width(char *s) return utf8_widthtab[cur].width; else low = cur + 1; - } else + } else { high = cur - 1; + } } while (low <= high); -- cgit v1.2.3-54-g00ecf