From c68f111e0d04dad06bb812cfe3a60eae9e53c251 Mon Sep 17 00:00:00 2001 From: halx99 Date: Sun, 9 Feb 2025 00:40:51 +0800 Subject: [PATCH] Fix wasm build fail with -O0 --- 1k/build.profiles | 2 +- core/ui/UIEditBox/UIEditBoxImpl-wasm.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/1k/build.profiles b/1k/build.profiles index d2aededc4d9f..aba2d82ca1e6 100644 --- a/1k/build.profiles +++ b/1k/build.profiles @@ -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 diff --git a/core/ui/UIEditBox/UIEditBoxImpl-wasm.cpp b/core/ui/UIEditBox/UIEditBoxImpl-wasm.cpp index 6cbe955186b7..b86b5eeff47f 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-wasm.cpp +++ b/core/ui/UIEditBox/UIEditBoxImpl-wasm.cpp @@ -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) @@ -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())