This fixes cases of evaluating x-y when y is a negative number.
---
 gas-preprocessor.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 190ef87..5917d2b 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -256,7 +256,7 @@ sub eval_expr {
     my $expr = $_[0];
     while ($expr =~ /([A-Za-z._][A-Za-z0-9._]*)/g) {
         my $sym = $1;
-        $expr =~ s/$sym/$symbols{$sym}/ if defined $symbols{$sym};
+        $expr =~ s/$sym/($symbols{$sym})/ if defined $symbols{$sym};
     }
     eval $expr;
 }
-- 
1.8.5.2 (Apple Git-48)

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to