Skip to content

Commit

Permalink
fix: Fix android build in some ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Jun 5, 2023
1 parent e92776b commit 777bcd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/iris_event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

#include "iris_event.h"

#include <cstring>
#include <cstdint>

#include <memory>
#include <map>
#include <vector>
Expand Down Expand Up @@ -87,7 +90,7 @@ class DartMessageHandler : public DartMessageHandlerBase
const void *obuffer = param->buffer[i];
unsigned int abufferLength = param->length[i];
uint8_t *abuffer = static_cast<uint8_t *>(malloc(abufferLength));
memcpy(abuffer, obuffer, abufferLength);
std::memcpy(abuffer, obuffer, abufferLength);

Dart_CObject *cbuffer = new Dart_CObject;
cbuffer->type = Dart_CObject_kExternalTypedData;
Expand Down

0 comments on commit 777bcd6

Please sign in to comment.