fix gcc overload ambiguity errors.

This commit is contained in:
Kelvin Sherlock 2020-11-12 17:38:31 -05:00
parent 433529897b
commit a38b2249f2
1 changed files with 4 additions and 0 deletions

View File

@ -813,6 +813,10 @@ void finish(void) {
namespace {
void push(std::vector<uint8_t> &v, omf::opcode x) {
v.push_back(static_cast<uint8_t>(x));
}
void push(std::vector<uint8_t> &v, uint8_t x) {
v.push_back(x);
}