This is an automated email from the ASF dual-hosted git repository.
jmalkin pushed a commit to branch bloom
in repository https://gitbox.apache.org/repos/asf/datasketches-python.git
The following commit(s) were added to refs/heads/bloom by this push:
new 5e3105f modify tdiget merge input to be const
5e3105f is described below
commit 5e3105f2e46d46dcc86496d3f421f39a67b9b02e
Author: Jon Malkin <[email protected]>
AuthorDate: Tue Oct 22 13:44:10 2024 -0700
modify tdiget merge input to be const
---
src/tdigest_wrapper.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tdigest_wrapper.cpp b/src/tdigest_wrapper.cpp
index 1f240df..b159cce 100644
--- a/src/tdigest_wrapper.cpp
+++ b/src/tdigest_wrapper.cpp
@@ -44,7 +44,7 @@ void bind_tdigest(nb::module_ &m, const char* name) {
.def("__copy__", [](const tdigest<T>& sk) { return tdigest<T>(sk); })
.def("update", (void(tdigest<T>::*)(T)) &tdigest<T>::update,
nb::arg("item"),
"Updates the sketch with the given value")
- .def("merge", (void(tdigest<T>::*)(tdigest<T>&)) &tdigest<T>::merge,
nb::arg("sketch"),
+ .def("merge", (void(tdigest<T>::*)(const tdigest<T>&)) &tdigest<T>::merge,
nb::arg("sketch"),
"Merges the provided sketch into this one")
.def("__str__", [](const tdigest<T>& sk) { return sk.to_string(); },
"Produces a string summary of the sketch")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]