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

Unified Diff: fusl/src/internal/stdio_impl.h

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space 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
« no previous file with comments | « fusl/src/internal/dynlink.h ('k') | fusl/src/internal/syscall.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/internal/stdio_impl.h
diff --git a/fusl/src/internal/stdio_impl.h b/fusl/src/internal/stdio_impl.h
index 0dd7fb5e41ef0ef839f433e6cf11901303d97460..7cdf729de8e7e8146e96bae75662ce4bac0c0cd0 100644
--- a/fusl/src/internal/stdio_impl.h
+++ b/fusl/src/internal/stdio_impl.h
@@ -86,7 +86,8 @@ void __ofl_unlock(void);
#define getc_unlocked(f) \
( ((f)->rpos < (f)->rend) ? *(f)->rpos++ : __uflow((f)) )
-#define putc_unlocked(c, f) ( ((c)!=(f)->lbf && (f)->wpos<(f)->wend) \
+#define putc_unlocked(c, f) \
+ ( ((unsigned char)(c)!=(f)->lbf && (f)->wpos<(f)->wend) \
? *(f)->wpos++ = (c) : __overflow((f),(c)) )
/* Caller-allocated FILE * operations */
« no previous file with comments | « fusl/src/internal/dynlink.h ('k') | fusl/src/internal/syscall.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698