From 15fce7c8f11985be5ac1fdb1f180a30150e9db89 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Thu, 1 May 2025 00:14:24 -0700 Subject: Smoke test WASM as a part of CI (#6969) * Simplify build of slang-wasm * Add smoke-test for slang-wasm in ci * Avoid git-clone playground --- source/compiler-core/slang-json-value.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/compiler-core/slang-json-value.cpp b/source/compiler-core/slang-json-value.cpp index ae38bd086..56d003737 100644 --- a/source/compiler-core/slang-json-value.cpp +++ b/source/compiler-core/slang-json-value.cpp @@ -869,8 +869,8 @@ void JSONContainer::_removeKey(JSONValue& obj, Index globalIndex) { auto localBuf = m_objectValues.getBuffer() + range.startIndex; ::memmove( - localBuf + localIndex, - localBuf + localIndex + 1, + (void*)(localBuf + localIndex), + (void*)(localBuf + localIndex + 1), sizeof(*localBuf) * (range.count - (localIndex + 1))); } @@ -925,7 +925,10 @@ template ioList.growToCount(newStartIndex + ioRange.count + 1); auto buffer = ioList.getBuffer(); - ::memmove(buffer + newStartIndex, buffer + ioRange.startIndex, sizeof(*buffer) * ioRange.count); + ::memmove( + (void*)(buffer + newStartIndex), + (void*)(buffer + ioRange.startIndex), + sizeof(*buffer) * ioRange.count); buffer[newStartIndex + ioRange.count] = value; -- cgit v1.2.3