Skip to content

Commit 978efb6

Browse files
committed
[ic] Fix boost::get bug
1 parent 476bbb1 commit 978efb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Ic.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,11 @@ std::vector<std::pair<Ic::Operation, Ic::Data>> Ic::executeSequence(std::vector<
230230
Data data = it.second;
231231
try {
232232
if (operation == Operation::Read) {
233-
auto out = read(boost::get<IcData>(data));
233+
auto out = read(boost::get<uint32_t>(data));
234234
ret.push_back({ operation, out });
235235
} else if (operation == Operation::Write) {
236-
auto out = write(boost::get<IcData>(data));
237-
ret.push_back({ operation, out });
236+
write(boost::get<IcData>(data));
237+
ret.push_back({ operation, IcData{ boost::get<IcData>(data) }});
238238
} else {
239239
BOOST_THROW_EXCEPTION(IcException() << ErrorInfo::Message("IC operation type unknown"));
240240
}

0 commit comments

Comments
 (0)