Skip to content

Commit

Permalink
Fix a range of data type warning in gcc (WebAssembly#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
clover2123 committed Oct 26, 2021
1 parent 6490253 commit 3101535
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/binary-reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2278,8 +2278,7 @@ Result BinaryReader::ReadTypeSection(Offset section_size) {
} else {
uint8_t type;
CHECK_RESULT(ReadU8(&type, "type form"));
ERROR_UNLESS(type == 0x60, "unexpected type form (got " PRItypecode ")",
WABT_PRINTF_TYPE_CODE(type));
ERROR_UNLESS(type == 0x60, "unexpected type form (got %#x)", type);
form = Type::Func;
}

Expand Down

0 comments on commit 3101535

Please sign in to comment.