Changeset 118643 in webkit
- Timestamp:
- May 27, 2012, 7:26:35 PM (14 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/MathExtras.h (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/Modules/websockets/WebSocketFrame.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r118603 r118643 1 2012-05-27 Yoshifumi Inoue <yosin@chromium.org> 2 3 [WTF] Introduce UINT64_C to MathExtras.h 4 https://bugs.webkit.org/show_bug.cgi?id=87485 5 6 Reviewed by Kent Tamura. 7 8 * wtf/MathExtras.h: 9 1 10 2012-05-25 Filip Pizlo <fpizlo@apple.com> 2 11 -
trunk/Source/WTF/wtf/MathExtras.h
r117779 r118643 303 303 #endif 304 304 305 #ifndef UINT64_C 306 #if COMPILER(MSVC) 307 #define UINT64_C(c) c ## ui64 308 #else 309 #define UINT64_C(c) c ## ull 310 #endif 311 #endif 312 305 313 306 314 // decompose 'number' to its sign, exponent, and mantissa components. -
trunk/Source/WebCore/ChangeLog
r118639 r118643 1 2012-05-27 Yoshifumi Inoue <yosin@chromium.org> 2 3 [WTF] Introduce UINT64_C to MathExtras.h 4 https://bugs.webkit.org/show_bug.cgi?id=87485 5 6 Reviewed by Kent Tamura. 7 8 This patch introduces UINT64_C for all platforms to avoid using 9 conditional compilation. 10 11 No new tests. This patch doesn't change behavior. 12 13 * Modules/websockets/WebSocketFrame.cpp: 14 (WebCore::WebSocketFrame::parseFrame): Replace conditional compilation with UINT64_C. 15 1 16 2012-05-27 Luke Macpherson <macpherson@chromium.org> 2 17 -
trunk/Source/WebCore/Modules/websockets/WebSocketFrame.cpp
r113580 r118643 28 28 29 29 #include <wtf/CryptographicallyRandomNumber.h> 30 #include <wtf/MathExtras.h> 30 31 31 32 using namespace std; … … 95 96 } 96 97 97 // FIXME: UINT64_C(0x7FFFFFFFFFFFFFFF) should be used but it did not compile on Qt bots. 98 #if COMPILER(MSVC) 99 static const uint64_t maxPayloadLength = 0x7FFFFFFFFFFFFFFFui64; 100 #else 101 static const uint64_t maxPayloadLength = 0x7FFFFFFFFFFFFFFFull; 102 #endif 98 static const uint64_t maxPayloadLength = UINT64_C(0x7FFFFFFFFFFFFFFF); 103 99 size_t maskingKeyLength = masked ? maskingKeyWidthInBytes : 0; 104 100 if (payloadLength64 > maxPayloadLength || payloadLength64 + maskingKeyLength > numeric_limits<size_t>::max()) {
Note:
See TracChangeset
for help on using the changeset viewer.