pull/5/head
A. R. Shajii 2021-10-13 15:50:49 -04:00
parent dd5f8783cd
commit dcf1e9ba33
2 changed files with 3 additions and 5 deletions

View File

@ -173,8 +173,7 @@ struct BoolExpr : public Expr {
/// @li 13u
/// @li 000_010b
struct IntExpr : public Expr {
/// Expression value is stored as a string that is parsed during the simplify
/// stage.
/// Expression value is stored as a string that is parsed during the simplify stage.
std::string value;
/// Number suffix (e.g. "u" for "123u").
std::string suffix;
@ -197,8 +196,7 @@ struct IntExpr : public Expr {
/// @li 13.15z
/// @li e-12
struct FloatExpr : public Expr {
/// Expression value is stored as a string that is parsed during the simplify
/// stage.
/// Expression value is stored as a string that is parsed during the simplify stage.
std::string value;
/// Number suffix (e.g. "u" for "123u").
std::string suffix;

View File

@ -316,7 +316,7 @@ int TypeContext::reorderNamedArgs(types::FuncType *func,
"bad 'known' string");
std::vector<int> extra;
std::map<std::string, int> namedArgs,
extraNamedArgs; // keep the std::map--- we need it sorted!
extraNamedArgs; // keep the map--- we need it sorted!
for (int ai = 0, si = 0; ai < args.size() - partial; ai++) {
if (args[ai].name.empty()) {
while (!known.empty() && si < slots.size() && known[si])