1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

- Fixed a bug with #define DEBUG (code didn't compile in that case)

This commit is contained in:
dan
2000-06-05 23:41:26 +00:00
parent 15f9713a84
commit 983e154118

View File

@@ -290,7 +290,7 @@ static int icbrt_with_bits(a, bits)
return icbrt_with_guess(a, a>>2*bits/3); return icbrt_with_guess(a, a>>2*bits/3);
} }
#ifdef _X_ROOT_STATS #ifdef DEBUG
int icbrt_loopcount; int icbrt_loopcount;
#endif #endif
@@ -309,7 +309,7 @@ static int icbrt_with_guess(a, guess)
{ {
register int delta; register int delta;
#ifdef _X_ROOT_STATS #ifdef DEBUG
icbrt_loopcount = 0; icbrt_loopcount = 0;
#endif #endif
if (a <= 0) if (a <= 0)
@@ -318,7 +318,7 @@ static int icbrt_with_guess(a, guess)
guess = 1; guess = 1;
do { do {
#ifdef _X_ROOT_STATS #ifdef DEBUG
icbrt_loopcount++; icbrt_loopcount++;
#endif #endif
delta = (guess - a/(guess*guess))/3; delta = (guess - a/(guess*guess))/3;