0001-DatumGetUInt32.patch
application/octet-stream
Filename: 0001-DatumGetUInt32.patch
Type: application/octet-stream
Part: 0
Message:
Improper use about DatumGetInt32
Patch
Format: format-patch
Series: patch 0001
Subject: DatumGetUInt32
| File | + | − |
|---|---|---|
| contrib/bloom/blutils.c | 1 | 1 |
From 8f2184f10b9c6a8f4fe51452ded67ac4433a8fce Mon Sep 17 00:00:00 2001 From: sherlockcpp <sherlockcpp@foxmail.com> Date: Sun, 20 Sep 2020 21:12:41 +0800 Subject: [PATCH] DatumGetUInt32 --- contrib/bloom/blutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/bloom/blutils.c b/contrib/bloom/blutils.c index 26b9927..e50c2bc 100644 --- a/contrib/bloom/blutils.c +++ b/contrib/bloom/blutils.c @@ -275,7 +275,7 @@ signValue(BloomState *state, BloomSignatureWord *sign, Datum value, int attno) * different columns will be mapped into different bits because of step * above */ - hashVal = DatumGetInt32(FunctionCall1Coll(&state->hashFn[attno], state->collations[attno], value)); + hashVal = DatumGetUInt32(FunctionCall1Coll(&state->hashFn[attno], state->collations[attno], value)); mySrand(hashVal ^ myRand()); for (j = 0; j < state->opts.bitSize[attno]; j++) -- 1.8.3.1