Commit 365977df authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Fixed a logical bug that was hidden from long ago



The logic to handle FTQC Measure parsing (measure then assign) was wrong.
It was always okay since there was always a space after Measure

Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent f6fe095c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -237,7 +237,8 @@ class xasm_single_visitor : public xasm::xasm_singleVisitor {
              // If "Measure" is not followed by a space or '(',
              // i.e. not having a function call signature,
              // we don't replace.
              (!isspace(s[pos + search.length()]) ||
              // Not space **and** not '('
              (!isspace(s[pos + search.length()]) &&
               (s[pos + search.length()] != '('))) {
            continue;
          }