diff --git a/SMP-analyze.sh b/SMP-analyze.sh
index b6c549ccf66c6ae12070e2297c66336bcc58ef99..60d27e21a4461afa6348ccc8f25a9629c3c8ab02 100755
--- a/SMP-analyze.sh
+++ b/SMP-analyze.sh
@@ -51,7 +51,7 @@ fi
 # determine if this binary in question is 32-bit or 64-bit.
 file $1|grep -q "32-bit" >/dev/null 2>&1
 res=$?
-if [ $res=1 ]; then
+if [ $res = 1 ]; then
 	myidal=idal64
    rm -f `basename $1 .ncexe`.i64
 else