From e13e9a9614e87cb4c73bd2d6221f5781596acf64 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 10 Oct 2024 12:19:08 -0700 Subject: [PATCH] Improved scoping [skip ci] --- src/ivfbuild.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ivfbuild.c b/src/ivfbuild.c index 2f8c7bf..54a5be5 100644 --- a/src/ivfbuild.c +++ b/src/ivfbuild.c @@ -228,11 +228,11 @@ BuildCallback(Relation index, ItemPointer tid, Datum *values, static inline void GetNextTuple(Tuplesortstate *sortstate, TupleDesc tupdesc, TupleTableSlot *slot, IndexTuple *itup, int *list) { - Datum value; - bool isnull; - if (tuplesort_gettupleslot(sortstate, true, false, slot, NULL)) { + Datum value; + bool isnull; + *list = DatumGetInt32(slot_getattr(slot, 1, &isnull)); value = slot_getattr(slot, 3, &isnull);