diff options
author | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-10-07 14:51:09 -0700 |
---|---|---|
committer | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-10-07 14:51:09 -0700 |
commit | 36ccfa5fb42bed46cee2fa11316d14ac77f90b01 (patch) | |
tree | 2ad84bd5df657310c8fd77cbe57e549a5a902415 | |
parent | a1d481041ab3ac6b44f1d3c1975c3d8df307852a (diff) | |
download | nasm-36ccfa5fb42bed46cee2fa11316d14ac77f90b01.tar.gz nasm-36ccfa5fb42bed46cee2fa11316d14ac77f90b01.tar.bz2 nasm-36ccfa5fb42bed46cee2fa11316d14ac77f90b01.zip |
iflags: Eliminate perl smart match operator
As smart match operator reuiqres perl version 5.10.1 or later,
it is replaced with grep function.
This part of code is going to be completely removed once iflags
renovataion is done. This commit is a quick fix for a build error.
Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
-rwxr-xr-x | insns.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -483,7 +483,7 @@ sub format_insn($$$$$) { # check if two different insn set types are set $cnt = 0; foreach $fla (split(/,/, $flags)) { - if ($fla ~~ @iflags) { + if (grep(/$fla/, @iflags)) { $cnt++; if ($cnt >= 2) { die "Too many insn set flags in $flags\n"; |