Changeset 77242 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Feb 1, 2011, 4:42:16 AM (14 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r77165 r77242 1 2011-02-01 Darin Fisher <[email protected]> 2 3 Reviewed by Eric Seidel. 4 5 Fix some Visual Studio compiler warnings. 6 https://bugs.webkit.org/show_bug.cgi?id=53476 7 8 * wtf/MathExtras.h: 9 (clampToInteger): 10 (clampToPositiveInteger): 11 * wtf/ThreadingWin.cpp: 12 (WTF::absoluteTimeToWaitTimeoutInterval): 13 1 14 2011-01-31 Oliver Hunt <[email protected]> 2 15 -
trunk/Source/JavaScriptCore/wtf/MathExtras.h
r77045 r77242 223 223 inline int clampToInteger(float d) 224 224 { 225 const float minIntAsFloat = st d::numeric_limits<int>::min();226 const float maxIntAsFloat = st d::numeric_limits<int>::max();225 const float minIntAsFloat = static_cast<float>(std::numeric_limits<int>::min()); 226 const float maxIntAsFloat = static_cast<float>(std::numeric_limits<int>::max()); 227 227 return static_cast<int>(std::max(std::min(d, maxIntAsFloat), minIntAsFloat)); 228 228 } … … 230 230 inline int clampToPositiveInteger(float d) 231 231 { 232 const float maxIntAsFloat = st d::numeric_limits<int>::max();232 const float maxIntAsFloat = static_cast<float>(std::numeric_limits<int>::max()); 233 233 return static_cast<int>(std::max<float>(std::min(d, maxIntAsFloat), 0)); 234 234 } -
trunk/Source/JavaScriptCore/wtf/ThreadingWin.cpp
r76967 r77242 492 492 return INFINITE; 493 493 494 return (absoluteTime - currentTime) * 1000;494 return static_cast<DWORD>((absoluteTime - currentTime) * 1000.0); 495 495 } 496 496
Note:
See TracChangeset
for help on using the changeset viewer.