*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.132 2005/07/12 16:04:58 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.133 2005/07/20 03:50:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
result->time += (months - result->month) * INT64CONST(30) *
USECS_PER_DAY;
#else
- result->month = rint(months);
+ result->month = (int)months;
result->time = JROUND(span1->time * factor);
/* evaluate fractional months as 30 days */
result->time += JROUND((months - result->month) * 30 * SECS_PER_DAY);
INT64CONST(30) * USECS_PER_DAY) / factor;
#else
months = span->month / factor;
- result->month = rint(months);
+ result->month = (int)months;
result->time = JROUND(span->time / factor);
/* evaluate fractional months as 30 days */
result->time += JROUND((months - result->month) * 30 * SECS_PER_DAY);