Skip to content

Commit 4bfc792

Browse files
Don't discard const qualifier
1 parent d2a5144 commit 4bfc792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fork_gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ static FGCError FGC_parentHandleNumeric(ForkGC *gc) {
549549
// Node-level staleness is handled by the generational arena inside
550550
// NumericRangeTree_ApplyGcEntry.
551551
if (!rt) {
552-
FieldSpec *fs = IndexSpec_GetFieldWithLength(_sctx.spec, fieldName, fieldNameLen);
552+
const FieldSpec *fs = IndexSpec_GetFieldWithLength(_sctx.spec, fieldName, fieldNameLen);
553553
// Cast is safe: openNumericOrGeoIndex only mutates fs when create_if_missing is true.
554554
rt = openNumericOrGeoIndex(_sctx.spec, (FieldSpec *)fs, DONT_CREATE_INDEX);
555555
if (!rt || NumericRangeTree_GetUniqueId(rt) != rtUniqueId) {

0 commit comments

Comments
 (0)