Skip to content

Commit 1aa6a62

Browse files
gorloffslavaBwL1289
authored andcommitted
+ Fix building in C++ 20 and 23 language modes
1 parent 16f9b91 commit 1aa6a62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/pyarrow/src/arrow/python/serialize.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ class DictBuilder {
7474
explicit DictBuilder(MemoryPool* pool = nullptr);
7575

7676
// Builder for the keys of the dictionary
77-
SequenceBuilder& keys() { return *keys_; }
77+
SequenceBuilder* keys() { return keys_.get(); }
7878
// Builder for the values of the dictionary
79-
SequenceBuilder& vals() { return *vals_; }
79+
SequenceBuilder* vals() { return vals_.get(); }
8080

8181
// Construct an Arrow StructArray representing the dictionary.
8282
// Contains a field "keys" for the keys and "vals" for the values.
@@ -349,9 +349,9 @@ Status SequenceBuilder::AppendDict(PyObject* context, PyObject* dict,
349349
while (PyDict_Next(dict, &pos, &key, &value)) {
350350
RETURN_NOT_OK(dict_values_->builder()->Append());
351351
RETURN_NOT_OK(
352-
Append(context, key, &dict_values_->keys(), recursion_depth + 1, blobs_out));
352+
Append(context, key, dict_values_->keys(), recursion_depth + 1, blobs_out));
353353
RETURN_NOT_OK(
354-
Append(context, value, &dict_values_->vals(), recursion_depth + 1, blobs_out));
354+
Append(context, value, dict_values_->vals(), recursion_depth + 1, blobs_out));
355355
}
356356

357357
// This block is used to decrement the reference counts of the results

0 commit comments

Comments
 (0)