diff options
author | Andres Freund <andres@anarazel.de> | 2015-03-22 19:51:12 +0100 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2015-03-22 19:53:38 +0100 |
commit | 59b0a98af07cf8decfe94739f92bf18ebb34ffc6 (patch) | |
tree | 6dbff6354f4afa384a5b07e20d7199362e93c46b /src/backend/utils/adt/numeric.c | |
parent | cb1ca4d800621dcae67ca6c799006de99fa4f0a5 (diff) | |
download | postgresql-59b0a98af07cf8decfe94739f92bf18ebb34ffc6.tar.gz postgresql-59b0a98af07cf8decfe94739f92bf18ebb34ffc6.zip |
Fix minor copy & pasto in the int128 accumulator patch.
It's unlikely that using PG_GETARG_INT16 instead of PG_GETARG_INT32 in
this pace can cause actual problems, but this still should be fixed.
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
-rw-r--r-- | src/backend/utils/adt/numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/numeric.c b/src/backend/utils/adt/numeric.c index ff9bfcc455c..0c4fcbe0d34 100644 --- a/src/backend/utils/adt/numeric.c +++ b/src/backend/utils/adt/numeric.c @@ -3019,7 +3019,7 @@ int2_accum(PG_FUNCTION_ARGS) if (!PG_ARGISNULL(1)) { #ifdef HAVE_INT128 - do_int128_accum(state, (int128) PG_GETARG_INT32(1)); + do_int128_accum(state, (int128) PG_GETARG_INT16(1)); #else Numeric newval; |