Skip to content

Commit 5e3105f

Browse files
committed
modify tdiget merge input to be const
1 parent ae2e5b3 commit 5e3105f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tdigest_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void bind_tdigest(nb::module_ &m, const char* name) {
4444
.def("__copy__", [](const tdigest<T>& sk) { return tdigest<T>(sk); })
4545
.def("update", (void(tdigest<T>::*)(T)) &tdigest<T>::update, nb::arg("item"),
4646
"Updates the sketch with the given value")
47-
.def("merge", (void(tdigest<T>::*)(tdigest<T>&)) &tdigest<T>::merge, nb::arg("sketch"),
47+
.def("merge", (void(tdigest<T>::*)(const tdigest<T>&)) &tdigest<T>::merge, nb::arg("sketch"),
4848
"Merges the provided sketch into this one")
4949
.def("__str__", [](const tdigest<T>& sk) { return sk.to_string(); },
5050
"Produces a string summary of the sketch")

0 commit comments

Comments
 (0)