Skip to content

Commit fc9feeb

Browse files
committed
Fix clang-format compliance in loader files
1 parent 8d88072 commit fc9feeb

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

core/iwasm/interpreter/wasm_loader.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5157,9 +5157,8 @@ load_data_segment_section(const uint8 *buf, const uint8 *buf_end,
51575157
#endif
51585158
{
51595159
#if WASM_ENABLE_MEMORY64 != 0
5160-
mem_offset_type = has_module_memory64(module)
5161-
? VALUE_TYPE_I64
5162-
: VALUE_TYPE_I32;
5160+
mem_offset_type = has_module_memory64(module) ? VALUE_TYPE_I64
5161+
: VALUE_TYPE_I32;
51635162
#else
51645163
mem_offset_type = VALUE_TYPE_I32;
51655164
#endif

core/iwasm/interpreter/wasm_mini_loader.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,9 +2030,8 @@ load_data_segment_section(const uint8 *buf, const uint8 *buf_end,
20302030
#endif /* WASM_ENABLE_BULK_MEMORY */
20312031
{
20322032
#if WASM_ENABLE_MEMORY64 != 0
2033-
mem_offset_type = has_module_memory64(module)
2034-
? VALUE_TYPE_I64
2035-
: VALUE_TYPE_I32;
2033+
mem_offset_type = has_module_memory64(module) ? VALUE_TYPE_I64
2034+
: VALUE_TYPE_I32;
20362035
#else
20372036
mem_offset_type = VALUE_TYPE_I32;
20382037
#endif /* WASM_ENABLE_MEMORY64 */

0 commit comments

Comments
 (0)