diff --git a/include/stdio.h b/include/stdio.h index 4668af92cb27..a7e86a700df2 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)