Changeset 27095 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Oct 26, 2007, 12:51:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r27086 r27095 50 50 namespace KJS { 51 51 52 #if PLATFORM(WIN_OS)53 #define copysign _copysign54 #endif55 56 52 // ------------------------------ StringImp ------------------------------------ 57 53 … … 251 247 // ------------------------------ global functions ----------------------------- 252 248 253 double roundValue(ExecState *exec, JSValue *v)254 {255 double d = v->toNumber(exec);256 double ad = fabs(d);257 if (ad == 0 || isNaN(d) || isInf(d))258 return d;259 return copysign(floor(ad), d);260 }261 262 249 #ifndef NDEBUG 263 250 #include <stdio.h>
Note:
See TracChangeset
for help on using the changeset viewer.