fix: return -> result.push_back

This commit is contained in:
jprochazk 2020-07-19 10:51:13 +02:00
parent a3a9d5665e
commit ab25de05f7

View file

@ -2278,7 +2278,7 @@ class binary_reader
success = false;
break;
}
return std::char_traits<char_type>::to_char_type(current);
result.push_back(std::char_traits<char_type>::to_char_type(current));
};
return success;
}
@ -2310,7 +2310,7 @@ class binary_reader
success = false;
break;
}
return static_cast<std::uint8_t>(current);
result.push_back(static_cast<std::uint8_t>(current));
}
return success;
}