Changeset 27201 in webkit for trunk/JavaScriptCore/kjs/value.cpp
- Timestamp:
- Oct 28, 2007, 7:52:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/value.cpp
r27095 r27201 26 26 #include "error_object.h" 27 27 #include "nodes.h" 28 #include "operations.h"29 28 #include <stdio.h> 30 29 #include <string.h> … … 63 62 return i; 64 63 double d = toNumber(exec); 65 return is NaN(d) ? 0.0 : trunc(d);64 return isnan(d) ? 0.0 : trunc(d); 66 65 } 67 66 … … 82 81 return static_cast<int32_t>(d); 83 82 84 if (is NaN(d) || isInf(d)) {83 if (isnan(d) || isinf(d)) { 85 84 ok = false; 86 85 return 0; … … 103 102 return static_cast<uint32_t>(d); 104 103 105 if (is NaN(d) || isInf(d)) {104 if (isnan(d) || isinf(d)) { 106 105 ok = false; 107 106 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.