From: Rudolf Polzer <divverent@alientrap.org>
Date: Mon, 30 Apr 2012 10:36:45 +0000 (+0200)
Subject: keep the state hash simpler
X-Git-Tag: xonotic-v0.7.0~55^2~30^2~5
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=34adbf6d4d2223552f796d13cd4b92789796428a;p=xonotic%2Fxonotic.git

keep the state hash simpler
---

diff --git a/misc/tools/progs-analyzer.pl b/misc/tools/progs-analyzer.pl
index dccb6810..d05031c0 100644
--- a/misc/tools/progs-analyzer.pl
+++ b/misc/tools/progs-analyzer.pl
@@ -657,14 +657,14 @@ sub find_uninitialized_locals($$)
 
 				for(keys %$state)
 				{
-					if($state->{$_}{valid}[0] < $s->{$_}[0])
+					if($state->{$_}{valid}[0] < $s->{$_})
 					{
 						# The current state is LESS valid than the previously run one. We NEED to run this.
 						# The saved state can safely become the intersection [citation needed].
 						for(keys %$state)
 						{
-							$s->{$_} = $state->{$_}{valid}
-								if $state->{$_}{valid}[0] < $s->{$_}[0];
+							$s->{$_} = $state->{$_}{valid}[0]
+								if $state->{$_}{valid}[0] < $s->{$_};
 						}
 						return 0;
 					}
@@ -675,7 +675,7 @@ sub find_uninitialized_locals($$)
 			else
 			{
 				# Never seen this IP yet.
-				$ip_seen{$ip} = { map { ($_ => $state->{$_}{valid}); } keys %$state };
+				$ip_seen{$ip} = { map { ($_ => $state->{$_}{valid}[0]); } keys %$state };
 				return 0;
 			}
 		},