Skip to content

Commit c02036b

Browse files
committed
Simplify loop test to avoid bug in AIX compiler, per Andreas.
1 parent 9ea6d0f commit c02036b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/analyze.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.63 2003/09/25 06:57:58 petere Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.64 2003/10/18 15:38:06 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -714,7 +714,7 @@ random_fract(void)
714714
do
715715
{
716716
z = random();
717-
} while (!(z > 0 && z < MAX_RANDOM_VALUE));
717+
} while (z <= 0 || z >= MAX_RANDOM_VALUE);
718718
return (double) z / (double) MAX_RANDOM_VALUE;
719719
}
720720

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy