From a2701b4e721b28e366b3a79bdd53199043bf90dc Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 21 Jul 2009 17:41:55 +0000 Subject: [PATCH] Use string comparison instead of numeric comparison when comparing digests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76594 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/UpdateCMakeLists.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/UpdateCMakeLists.pl b/utils/UpdateCMakeLists.pl index 94e69ce2556..3aa2f8891e2 100755 --- a/utils/UpdateCMakeLists.pl +++ b/utils/UpdateCMakeLists.pl @@ -96,7 +96,7 @@ sub UpdateCMake { my $digestB = Digest::MD5->new->addfile(*FILE)->hexdigest; close(FILE); - if ($digestA != $digestB) { + if ($digestA ne $digestB) { move($cmakeListNew, $cmakeList); return 1; }