Skip to content

Commit d407c4e

Browse files
BreadTomandrewrk
authored andcommitted
Update wasm2c.c
1 parent f0fec95 commit d407c4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stage1/wasm2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ int main(int argc, char **argv) {
316316
"}\n"
317317
"\n"
318318
"static uint32_t memory_grow(uint8_t **m, uint32_t *p, uint32_t *c, uint32_t n) {\n"
319-
" uint8_t *new_m = *m;\n"
320319
" uint32_t r = *p;\n"
321320
" uint32_t new_p = r + n;\n"
322321
" if (new_p > UINT32_C(0xFFFF)) return UINT32_C(0xFFFFFFFF);\n"
322+
" uint8_t *new_m = *m;\n"
323323
" uint32_t new_c = *c;\n"
324324
" if (new_c < new_p) {\n"
325325
" do new_c += new_c / 2 + 8; while (new_c < new_p);\n"

0 commit comments

Comments
 (0)