mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix crash due to typo (#3132)
I meant to compare these values, not assign them.
This commit is contained in:
parent
d4a5e3671c
commit
be22caccc5
@ -52,8 +52,8 @@ void PlatformMessage::InvokeCallback(std::vector<char> 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<size_t>(length) == data.size());
|
||||
memcpy(buffer, data.data(), length);
|
||||
Dart_TypedDataReleaseData(byte_buffer);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user