mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-15 16:58:34 +00:00
set initial value for mem_offset_type
This commit is contained in:
parent
afcd2aca30
commit
bab534d954
|
@ -4628,7 +4628,7 @@ load_data_segment_section(const uint8 *buf, const uint8 *buf_end,
|
||||||
bool is_passive = false;
|
bool is_passive = false;
|
||||||
uint32 mem_flag;
|
uint32 mem_flag;
|
||||||
#endif
|
#endif
|
||||||
uint8 mem_offset_type;
|
uint8 mem_offset_type = VALUE_TYPE_I32;
|
||||||
|
|
||||||
read_leb_uint32(p, p_end, data_seg_count);
|
read_leb_uint32(p, p_end, data_seg_count);
|
||||||
|
|
||||||
|
|
|
@ -1776,7 +1776,7 @@ load_data_segment_section(const uint8 *buf, const uint8 *buf_end,
|
||||||
bool is_passive = false;
|
bool is_passive = false;
|
||||||
uint32 mem_flag;
|
uint32 mem_flag;
|
||||||
#endif
|
#endif
|
||||||
uint8 mem_offset_type;
|
uint8 mem_offset_type = VALUE_TYPE_I32;
|
||||||
|
|
||||||
read_leb_uint32(p, p_end, data_seg_count);
|
read_leb_uint32(p, p_end, data_seg_count);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user