From 79ee8371768d8933af77721764286fa885ddb197 Mon Sep 17 00:00:00 2001
From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Thu, 25 May 2006 03:54:31 +0000
Subject: [PATCH] increased runaway jump count limit to 1000000000

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6378 d7cf8633-e32d-0410-b094-e92efae38249
---
 prvm_execprogram.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/prvm_execprogram.h b/prvm_execprogram.h
index aa79fdb3..e1159c8f 100644
--- a/prvm_execprogram.h
+++ b/prvm_execprogram.h
@@ -229,7 +229,7 @@
 					prog->xfunction->profile += (st - startst);
 					st += st->b - 1;	// offset the s++
 					startst = st;
-					if (++jumpcount> 1000000)
+					if (++jumpcount == 1000000000)
 					{
 						prog->xstatement = st - prog->statements;
 						PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME);
@@ -243,7 +243,7 @@
 					prog->xfunction->profile += (st - startst);
 					st += st->b - 1;	// offset the s++
 					startst = st;
-					if (++jumpcount> 1000000)
+					if (++jumpcount == 1000000000)
 					{
 						prog->xstatement = st - prog->statements;
 						PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME);
@@ -255,7 +255,7 @@
 				prog->xfunction->profile += (st - startst);
 				st += st->a - 1;	// offset the s++
 				startst = st;
-				if (++jumpcount> 1000000)
+				if (++jumpcount == 1000000000)
 				{
 					prog->xstatement = st - prog->statements;
 					PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME);
-- 
2.39.5