From c46ef2dae280b08b6e546bae31ac267659abe1a1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 21 Aug 2007 03:56:07 +0000 Subject: [PATCH] Fix cash_mul_int4 and cash_div_int4 for overenthusiastic substitution of int64 for int32. Per reports from Merlin Moncure and Andrew Chernow. --- src/backend/utils/adt/cash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/adt/cash.c b/src/backend/utils/adt/cash.c index 635b39b824..ec90d489fe 100644 --- a/src/backend/utils/adt/cash.c +++ b/src/backend/utils/adt/cash.c @@ -652,7 +652,7 @@ Datum cash_mul_int4(PG_FUNCTION_ARGS) { Cash c = PG_GETARG_CASH(0); - int64 i = PG_GETARG_INT64(1); + int32 i = PG_GETARG_INT32(1); Cash result; result = c * i; @@ -683,7 +683,7 @@ Datum cash_div_int4(PG_FUNCTION_ARGS) { Cash c = PG_GETARG_CASH(0); - int64 i = PG_GETARG_INT64(1); + int32 i = PG_GETARG_INT32(1); Cash result; if (i == 0) -- 2.39.5