You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2022/11/04 03:12:13 UTC
[datasketches-postgresql] 01/01: hopefully fix issue #54
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch frequent_items_allocation_fix
in repository https://gitbox.apache.org/repos/asf/datasketches-postgresql.git
commit ee21b65717c7f041d287fef3fdb75fdd624fb34c
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Thu Nov 3 20:11:11 2022 -0700
hopefully fix issue #54
---
src/frequent_strings_sketch_c_adapter.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frequent_strings_sketch_c_adapter.cpp b/src/frequent_strings_sketch_c_adapter.cpp
index 12d3def..b2b5ead 100644
--- a/src/frequent_strings_sketch_c_adapter.cpp
+++ b/src/frequent_strings_sketch_c_adapter.cpp
@@ -69,7 +69,7 @@ struct serde_string {
ptr = static_cast<const char*>(ptr) + sizeof(uint32_t);
bytes_read += sizeof(length);
pg_check_memory_size(bytes_read + length, capacity);
- new (&items[i]) std::string(static_cast<const char*>(ptr), length);
+ new (&items[i]) string(static_cast<const char*>(ptr), length);
ptr = static_cast<const char*>(ptr) + length;
bytes_read += length;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org