| Index: mojo/system/handle_table.cc
|
| diff --git a/mojo/system/handle_table.cc b/mojo/system/handle_table.cc
|
| index 5c7c74c3abea6627c0e9989c23702434cad89a15..8cfa26702d2d37e703b1fa4bc067e0a803fb5468 100644
|
| --- a/mojo/system/handle_table.cc
|
| +++ b/mojo/system/handle_table.cc
|
| @@ -79,11 +79,11 @@ bool HandleTable::AddDispatcherVector(const DispatcherVector& dispatchers,
|
| DCHECK(handles);
|
| // TODO(vtl): |std::numeric_limits<size_t>::max()| isn't a compile-time
|
| // expression in C++03.
|
| - COMPILE_ASSERT(
|
| + static_assert(
|
| static_cast<uint64_t>(kMaxHandleTableSize) + kMaxMessageNumHandles <
|
| (sizeof(size_t) == 8 ? kuint64max
|
| : static_cast<uint64_t>(kuint32max)),
|
| - addition_may_overflow);
|
| + "Addition may overflow");
|
|
|
| if (handle_to_entry_map_.size() + dispatchers.size() > kMaxHandleTableSize)
|
| return false;
|
|
|