summaryrefslogtreecommitdiff
path: root/insns.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-19 21:10:14 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-19 21:10:14 -0700
commite6fb38b9f2b9d0549142898725d723bf9cec748f (patch)
tree23ebe8f346ae21d9b2c3fa4cddb714f4602bfdcc /insns.pl
parent7a4928f484b9c2f1676349c421215cbb8766e030 (diff)
downloadnasm-e6fb38b9f2b9d0549142898725d723bf9cec748f.tar.gz
nasm-e6fb38b9f2b9d0549142898725d723bf9cec748f.tar.bz2
nasm-e6fb38b9f2b9d0549142898725d723bf9cec748f.zip
insns.pl: escape literal special character in regex
In Perl code, it is good practice to escape special characters intended to be literal.
Diffstat (limited to 'insns.pl')
-rw-r--r--insns.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/insns.pl b/insns.pl
index 0b5e1a3..7b4d8b4 100644
--- a/insns.pl
+++ b/insns.pl
@@ -678,7 +678,7 @@ sub byte_code_compile($) {
die "$0: $line: $op without 'i' and 's' operands\n";
}
push(@codes, 0172, ($oppos{'s'} << 3)+$oppos{'i'});
- } elsif ($op =~ /^is4=([0-9]+)$/) {
+ } elsif ($op =~ /^is4\=([0-9]+)$/) {
if (!defined($oppos{'s'})) {
die "$0: $line: $op without 's' operand\n";
}