Fix ToBin function

This commit is contained in:
Alexey Nagaev
2025-06-04 02:31:47 +03:00
parent c4eb6ef445
commit 22e89be7a3
5 changed files with 81 additions and 18 deletions

View File

@ -264,6 +264,9 @@ namespace NSWasm
memcpy(m_pDataCur, sStr.c_str(), bufferLen);
}
m_pDataCur += static_cast<unsigned int>(len);
m_lSizeCur += static_cast<unsigned int>(len);
if (!isBytes)
len /= 2;