Skip to content

Commit d3e1f09

Browse files
committed
Fix problem
1 parent f9fde01 commit d3e1f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cqasm/cqasm_reader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class AngleFromParameter : public Value<Real> {
188188
Real val;
189189
if (auto i = operands[index]->as_const_int()) {
190190
val = i->value;
191-
} else if (auto r = operands[index]->as_const_int()) {
191+
} else if (auto r = operands[index]->as_const_real()) {
192192
val = r->value;
193193
} else {
194194
throw Exception("expected a real number at " + location(*operands[index]));

0 commit comments

Comments
 (0)