fix import segment number

This commit is contained in:
Kelvin Sherlock 2019-12-21 17:32:06 -05:00
parent c85d401fbf
commit 5e6829e9ae

View File

@ -498,7 +498,7 @@ static void import(const std::string &path, const std::string &name) {
e->file = path; e->file = path;
e->defined = true; e->defined = true;
e->value = seg.data.size(); e->value = seg.data.size();
e->segment = segments.size()-1; e->segment = segments.back().segnum;
seg.data.insert(seg.data.end(), mf.data(), mf.data() + mf.size()); seg.data.insert(seg.data.end(), mf.data(), mf.data() + mf.size());