diff --git a/lib/ui/window/platform_message.cc b/lib/ui/window/platform_message.cc index f4f6a3717b6..c90c2649738 100644 --- a/lib/ui/window/platform_message.cc +++ b/lib/ui/window/platform_message.cc @@ -52,8 +52,8 @@ void PlatformMessage::InvokeCallback(std::vector data) { Dart_TypedData_Type type; DART_CHECK_VALID( Dart_TypedDataAcquireData(byte_buffer, &type, &buffer, &length)); - FTL_CHECK(type = Dart_TypedData_kByteData); - FTL_CHECK(length = data.size()); + FTL_CHECK(type == Dart_TypedData_kByteData); + FTL_CHECK(static_cast(length) == data.size()); memcpy(buffer, data.data(), length); Dart_TypedDataReleaseData(byte_buffer); }