Commit 6f56c659 authored by Zachary Parks's avatar Zachary Parks
Browse files

Little fix to use toString() for checking parameters



Signed-off-by: default avatarZachary Parks <1zp@ornl.gov>
parent cfdfed47
...@@ -103,7 +103,7 @@ const int nRequiredBits() const override { ...@@ -103,7 +103,7 @@ const int nRequiredBits() const override {
xacc::InstructionParameter param = instruction->getParameter(0); xacc::InstructionParameter param = instruction->getParameter(0);
bool dupParam = false; bool dupParam = false;
for (auto p : parameters) { for (auto p : parameters) {
if (p.as<std::string>() == param.as<std::string>()) { if (p.toString() == param.toString()) {
dupParam = true; dupParam = true;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment