Index: base/sync_socket_win.cc |
diff --git a/base/sync_socket_win.cc b/base/sync_socket_win.cc |
index e16b925bbdf000299566bab887f4235b95f652b5..4b5040ccb95e440a662316839ae0323941d9d260 100644 |
--- a/base/sync_socket_win.cc |
+++ b/base/sync_socket_win.cc |
@@ -121,7 +121,7 @@ size_t CancelableFileOperation(Function operation, |
DWORD timeout_in_ms) { |
ThreadRestrictions::AssertIOAllowed(); |
// The buffer must be byte size or the length check won't make much sense. |
- COMPILE_ASSERT(sizeof(buffer[0]) == sizeof(char), incorrect_buffer_type); |
+ static_assert(sizeof(buffer[0]) == sizeof(char), "incorrect buffer type"); |
DCHECK_GT(length, 0u); |
DCHECK_LE(length, kMaxMessageLength); |
DCHECK_NE(file, SyncSocket::kInvalidHandle); |