diff options
| author | christos <christos@NetBSD.org> | 2016-03-17 00:42:49 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2016-03-17 00:42:49 +0000 |
| commit | 2e33e3ecb27c8c169c43eb2030d34c6f4e7802e9 (patch) | |
| tree | b397e385bb833a603744a57337d5506b3f4d21c0 /include | |
| parent | ec62f849394fe9f618c30a936eb3e5b27e343a57 (diff) | |
gcc 5, my patience is waning.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdio.h b/include/stdio.h index 4668af92cb2..a7e86a700df 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.96 2015/03/24 07:44:52 wiz Exp $ */ +/* $NetBSD: stdio.h,v 1.97 2016/03/17 00:42:49 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -483,7 +483,7 @@ static __inline int __sputc(int _c, FILE *_p) { #define __sfeof(p) (((p)->_flags & __SEOF) != 0) #define __sferror(p) (((p)->_flags & __SERR) != 0) -#define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) +#define __sclearerr(p) ((void)((p)->_flags &= (unsigned short)~(__SERR|__SEOF))) #define __sfileno(p) \ ((p)->_file == -1 ? -1 : (int)(unsigned short)(p)->_file) |
