Skip to content

Commit c68f111

Browse files
committed
Fix wasm build fail with -O0
1 parent 361165d commit c68f111

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

1k/build.profiles

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ guava=33.3.1
8282

8383
# --- region platform:wasm
8484

85-
emsdk=3.1.66~3.1.73
85+
emsdk=3.1.73~4.0.3
8686

8787
# --- endregion

core/ui/UIEditBox/UIEditBoxImpl-wasm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace ui
4040
EditBoxImplWasm* _activeEditBox = nullptr;
4141
extern "C" {
4242
EMSCRIPTEN_KEEPALIVE
43-
void getInputOver(unsigned char* dataPtr, int dataLength)
43+
void getInputOver(char* dataPtr, int dataLength)
4444
{
4545
AXLOGD("text {} ", dataPtr);
4646
if (_activeEditBox)
@@ -55,7 +55,7 @@ void getInputOver(unsigned char* dataPtr, int dataLength)
5555

5656
EMSCRIPTEN_KEEPALIVE
5757

58-
void getInputChange(unsigned char* dataPtr, int dataLength)
58+
void getInputChange(char* dataPtr, int dataLength)
5959
{
6060
AXLOGD("text {} ", dataPtr);
6161
if (_activeEditBox && _activeEditBox->isEditingMode())

0 commit comments

Comments
 (0)