From 734b2abcca954453076487efc7ab1ede823a0479 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Wed, 17 May 2023 11:44:05 -0700 Subject: [PATCH] Internal Code Change PiperOrigin-RevId: 532856964 --- python/google/protobuf/pyext/descriptor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/google/protobuf/pyext/descriptor.cc b/python/google/protobuf/pyext/descriptor.cc index fefcca7a0e..4ef2357f11 100644 --- a/python/google/protobuf/pyext/descriptor.cc +++ b/python/google/protobuf/pyext/descriptor.cc @@ -621,8 +621,8 @@ static PyObject* GetExtensionRanges(PyBaseDescriptor *self, void *closure) { for (int i = 0; i < descriptor->extension_range_count(); i++) { const Descriptor::ExtensionRange* range = descriptor->extension_range(i); - PyObject* start = PyLong_FromLong(range->start); - PyObject* end = PyLong_FromLong(range->end); + PyObject* start = PyLong_FromLong(range->start_number()); + PyObject* end = PyLong_FromLong(range->end_number()); PyList_SetItem(range_list, i, PyTuple_Pack(2, start, end)); }