From be22caccc540f53422fd34476f1bafffed7d490a Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 13 Oct 2016 16:03:42 -0700 Subject: [PATCH] Fix crash due to typo (#3132) I meant to compare these values, not assign them. --- lib/ui/window/platform_message.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ui/window/platform_message.cc b/lib/ui/window/platform_message.cc index f4f6a3717..c90c26497 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); } -- GitLab