Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: fusl/src/multibyte/btowc.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/multibyte/btowc.c
diff --git a/fusl/src/multibyte/btowc.c b/fusl/src/multibyte/btowc.c
index 8acd0a2cf1002ccda866949f0c528bd3bdd6fa50..bc164500d318d54e8b9b5cbd129daafbc1e26c8d 100644
--- a/fusl/src/multibyte/btowc.c
+++ b/fusl/src/multibyte/btowc.c
@@ -3,8 +3,7 @@
#include <stdlib.h>
#include "internal.h"
-wint_t btowc(int c)
-{
- int b = (unsigned char)c;
- return b<128U ? b : (MB_CUR_MAX==1 && c!=EOF) ? CODEUNIT(c) : WEOF;
+wint_t btowc(int c) {
+ int b = (unsigned char)c;
+ return b < 128U ? b : (MB_CUR_MAX == 1 && c != EOF) ? CODEUNIT(c) : WEOF;
}

Powered by Google App Engine
This is Rietveld 408576698