wasmc
wasmc copied to clipboard
Bug in module.c / skip_immediate
Hi, there is a small bug in skip_immediate function: a break is missing
case I32Const:
// I32Const 指令的立即数表示 32 有符号整数(占 4 个字节)
read_LEB_unsigned(bytes, pos, 32);
HERE>>>>>>>>
case I64Const:
// F32Const 指令的立即数表示 64 有符号整数(占 8 个字节)
read_LEB_unsigned(bytes, pos, 64);
break;
BTW: really good work - thanks for your incredible comments