Commit c02036b1 authored by Tom Lane's avatar Tom Lane

Simplify loop test to avoid bug in AIX compiler, per Andreas.

parent 9ea6d0fc
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.63 2003/09/25 06:57:58 petere Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.64 2003/10/18 15:38:06 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -714,7 +714,7 @@ random_fract(void) ...@@ -714,7 +714,7 @@ random_fract(void)
do do
{ {
z = random(); z = random();
} while (!(z > 0 && z < MAX_RANDOM_VALUE)); } while (z <= 0 || z >= MAX_RANDOM_VALUE);
return (double) z / (double) MAX_RANDOM_VALUE; return (double) z / (double) MAX_RANDOM_VALUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment