Nonsigned => NoSign
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 24929c4..e8b9447 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h
@@ -281,10 +281,10 @@ Expression* makeRttFreshSub(Element& s); Expression* makeStructNew(Element& s, bool default_); Index getStructIndex(Element& type, Element& field); - Expression* makeStructGet(Element& s, Signedness signedness = Nonsigned); + Expression* makeStructGet(Element& s, Signedness signedness = NoSign); Expression* makeStructSet(Element& s); Expression* makeArrayNew(Element& s, bool default_); - Expression* makeArrayGet(Element& s, Signedness signedness = Nonsigned); + Expression* makeArrayGet(Element& s, Signedness signedness = NoSign); Expression* makeArraySet(Element& s); Expression* makeArrayLen(Element& s); Expression* makeArrayCopy(Element& s);
diff --git a/src/wasm-type.h b/src/wasm-type.h index 03c7433..59623be 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h
@@ -64,7 +64,7 @@ // The value has signedness, and is unsigned, like e.g. uint32_t. Unsigned, // The value has no concept of signedness, like e.g. float or raw bits. - Nonsigned + NoSign }; // The type used for interning IDs in the public interfaces of Type and
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp index aafd34a..ac3ac9a 100644 --- a/src/wasm/wasm-s-parser.cpp +++ b/src/wasm/wasm-s-parser.cpp
@@ -2647,11 +2647,11 @@ Signedness signedness, Element& s, std::string what) { - if (field.isPacked() && signedness == Nonsigned) { + if (field.isPacked() && signedness == NoSign) { throw ParseException( "packed " + what + " must be read as packed", s.line, s.col); } - if (!field.isPacked() && signedness != Nonsigned) { + if (!field.isPacked() && signedness != NoSign) { throw ParseException( "non-packed " + what + " must not be read as packed", s.line, s.col); }