about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--lib/SMT/smtlib.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SMT/smtlib.y b/lib/SMT/smtlib.y
index 7a6485ea..43682cf4 100644
--- a/lib/SMT/smtlib.y
+++ b/lib/SMT/smtlib.y
@@ -745,8 +745,8 @@ an_bitwise_fun:
 
   | LPAREN_TOK BVEXTRACT_TOK LBRACKET_TOK NUMERAL_TOK COLON_TOK NUMERAL_TOK RBRACKET_TOK an_term annotations
     {
-      int off = PARSER->StringToInt(*$4);
-      $$ = ExtractExpr::create($8, off, PARSER->StringToInt(*$6) - off + 1);
+      int off = PARSER->StringToInt(*$6);
+      $$ = ExtractExpr::create($8, off, PARSER->StringToInt(*$4) - off + 1);
     }
 ;