Skip to content

Commit 39d0385

Browse files
committed
Refactor: use LEB128 encoding in interruptUPDATEModule
1 parent bdb533f commit 39d0385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Debug/debugger.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ void Debugger::stop() {
10961096

10971097
bool Debugger::handleUpdateModule(Module *m, uint8_t *data) {
10981098
uint8_t *wasm_data = data + 1;
1099-
uint32_t wasm_len = read_B32(&wasm_data);
1099+
uint32_t wasm_len = read_LEB_32(&wasm_data);
11001100
uint8_t *wasm = (uint8_t *)malloc(sizeof(uint8_t) * wasm_len);
11011101
memcpy(wasm, wasm_data, wasm_len);
11021102
WARDuino *wd = m->warduino;

0 commit comments

Comments
 (0)