*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.49 2002/06/07 23:41:53 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.50 2002/06/07 23:43:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
if (arg1 == 0)
result = 1;
- else if (arg1 < 1)
+ else if (arg1 < 0)
result = 0;
else
for (result = 1; arg1 > 0; --arg1)
if (arg1 == 0)
result = 1;
- else if (arg1 < 1)
+ else if (arg1 < 0)
result = 0;
else
for (result = 1; arg1 > 0; --arg1)