about summary refs log tree commit diff
path: root/locale/newlocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/newlocale.c')
-rw-r--r--locale/newlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/newlocale.c b/locale/newlocale.c
index 33cc7fa09a..c54d1c82c6 100644
--- a/locale/newlocale.c
+++ b/locale/newlocale.c
@@ -54,7 +54,7 @@ __newlocale (int category_mask, const char *locale, __locale_t base)
     category_mask = (1 << LC_ALL) - 1;
 
   /* Sanity check for CATEGORY argument.  */
-  if ((category_mask & ~(1 << LC_ALL) - 1) != 0)
+  if ((category_mask & ~((1 << LC_ALL) - 1)) != 0)
     ERROR_RETURN;
 
   /* `newlocale' does not support asking for the locale name. */