From: havoc Date: Wed, 14 Jun 2006 16:22:11 +0000 (+0000) Subject: reduce runaway loop counter limit from 1 billion to 10 million, as 1 billion takes... X-Git-Tag: xonotic-v0.1.0preview~3899 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4cdc6317bfd749cb3f29b4b05b65c763ba709e7f;p=xonotic%2Fdarkplaces.git reduce runaway loop counter limit from 1 billion to 10 million, as 1 billion takes a while git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6479 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_execprogram.h b/prvm_execprogram.h index e1159c8f..aa72801c 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 == 1000000000) + if (++jumpcount == 10000000) { 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 == 1000000000) + if (++jumpcount == 10000000) { 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 == 1000000000) + if (++jumpcount == 10000000) { 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);