| Index: ppapi/proxy/websocket_resource.cc
|
| diff --git a/ppapi/proxy/websocket_resource.cc b/ppapi/proxy/websocket_resource.cc
|
| index bc4e8535520be3abbda67352ca3200df6984b38d..b374ef3d3222b18ebb2df3c76d865d9ce2540c41 100644
|
| --- a/ppapi/proxy/websocket_resource.cc
|
| +++ b/ppapi/proxy/websocket_resource.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "ppapi/proxy/websocket_resource.h"
|
|
|
| +#include <limits>
|
| #include <set>
|
| #include <string>
|
| #include <vector>
|
| @@ -26,8 +27,8 @@ const size_t kMinimumPayloadSizeWithTwoByteExtendedPayloadLength = 126;
|
| const size_t kMinimumPayloadSizeWithEightByteExtendedPayloadLength = 0x10000;
|
|
|
| uint64_t SaturateAdd(uint64_t a, uint64_t b) {
|
| - if (kuint64max - a < b)
|
| - return kuint64max;
|
| + if (std::numeric_limits<uint64_t>::max() - a < b)
|
| + return std::numeric_limits<uint64_t>::max();
|
| return a + b;
|
| }
|
|
|
|
|