From 6aa54979a90ce7273cb26cc0e695e08eda0f9cee Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Fri, 13 Jan 2017 12:16:30 -0500 Subject: [PATCH] gcc 5 doesn't support enum : uint8_t... --- omf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omf.cpp b/omf.cpp index ec80a83..00cc928 100644 --- a/omf.cpp +++ b/omf.cpp @@ -330,9 +330,9 @@ uint32_t add_relocs(std::vector &data, size_t data_offset, omf::segment if (tmp.empty()) continue; reloc_size += tmp.size() + 6; - push(data, omf::SUPER); + data.push_back(omf::SUPER); push(data, ((uint32_t)tmp.size() + 1)); - push(data, (uint8_t)i); + data.push_back(i); data.insert(data.end(), tmp.begin(), tmp.end()); }