Skip to content

Commit

Permalink
Fix wasm build fail with -O0
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Feb 8, 2025
1 parent 361165d commit c68f111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 1k/build.profiles
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ guava=33.3.1

# --- region platform:wasm

emsdk=3.1.66~3.1.73
emsdk=3.1.73~4.0.3

# --- endregion
4 changes: 2 additions & 2 deletions core/ui/UIEditBox/UIEditBoxImpl-wasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace ui
EditBoxImplWasm* _activeEditBox = nullptr;
extern "C" {
EMSCRIPTEN_KEEPALIVE
void getInputOver(unsigned char* dataPtr, int dataLength)
void getInputOver(char* dataPtr, int dataLength)
{
AXLOGD("text {} ", dataPtr);
if (_activeEditBox)
Expand All @@ -55,7 +55,7 @@ void getInputOver(unsigned char* dataPtr, int dataLength)

EMSCRIPTEN_KEEPALIVE

void getInputChange(unsigned char* dataPtr, int dataLength)
void getInputChange(char* dataPtr, int dataLength)
{
AXLOGD("text {} ", dataPtr);
if (_activeEditBox && _activeEditBox->isEditingMode())
Expand Down

0 comments on commit c68f111

Please sign in to comment.