This commit is contained in:
Simon Cruanes 2023-12-27 23:31:17 -05:00
parent a275f1a2e0
commit c4b644ecf8
No known key found for this signature in database
GPG Key ID: EBFFF6F283F3A2B4

View File

@ -250,7 +250,7 @@ void readArgument(std::vector<Argument> &args, DecodeState &dec,
ArgumentValue value;
switch (ty) {
case 0:
value = (Unit){};
value = Unit{};
break;
case 1: {
int32_t i = header >> 32;
@ -324,7 +324,7 @@ double argumentToNumber(Argument const &arg) {
} else if (std::holds_alternative<uint64_t>(arg.value)) {
return static_cast<double>(std::get<uint64_t>(arg.value));
} else {
assert(false);
abort();
}
}