فهرست منبع

libc/stdlib/_strtod.c: add parens around a | b

Denis Vlasenko 15 سال پیش
والد
کامیت
da3fc969d3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      libc/stdlib/_strtod.c

+ 1 - 1
libc/stdlib/_strtod.c

@@ -351,7 +351,7 @@ __fpmax_t attribute_hidden __XL_NPP(__strtofpmax)(const Wchar *str, Wchar **endp
 				/* Unfortunately, we have no memcasecmp(). */
 				int j = 0;
 				/* | 0x20 is a cheap lowercasing (valid for ASCII letters and numbers only) */
-				while (pos[j] | 0x20 == nan_inf_str[i+1+j]) {
+				while ((pos[j] | 0x20) == nan_inf_str[i+1+j]) {
 					++j;
 					if (!nan_inf_str[i+1+j]) {
 						number = i / 0.;