Changeset 2173 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Sep 26, 2002, 8:20:47 AM (23 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/config.h
r901 r2173 1 1 #define HAVE_FUNC_ISINF 1 2 #define HAVE_FUNC_ISNAN 1 3 #define HAVE_STRING_H 1 4 #define HAVE_STRINGS_H 1 5 #define HAVE_SYS_TIME_H 1 2 6 #define TIME_WITH_SYS_TIME 1 3 # define HAVE_SYS_TIME_H 14 #define HAVE_FUNC_ISNAN 15 # define HAVE_STRINGS_H7 #ifdef __ppc__ 8 #define WORDS_BIGENDIAN 1 9 #endif -
trunk/JavaScriptCore/kjs/math_object.cpp
r2168 r2173 183 183 if ( isNaN( val ) ) 184 184 { 185 185 result = NaN; 186 186 break; 187 187 } 188 // Comparing a number to negative infinity doesn't work. 189 // -dwh 190 if ( k == 0 || val > result ) 188 if ( val > result ) 191 189 result = val; 192 190 } … … 203 201 break; 204 202 } 205 // Comparing a number to positive infinity doesn't work. 206 // -dwh 207 if ( k == 0 || val < result ) 203 if ( val < result ) 208 204 result = val; 209 205 }
Note:
See TracChangeset
for help on using the changeset viewer.