1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: initializing with 0 instead of "" in order to avoid
error: cast from ‘const char*’ to ‘mup::int_type’ {aka ‘int’} loses precision
Author: Pierre Gruet <pgt@debian.org>
Forwarded: https://github.com/OmicsDataAutomation/TileDB/issues/128
Last-Update: 2022-09-11
--- a/genomicsdb-tiledb/core/src/expressions/expression.cc
+++ b/genomicsdb-tiledb/core/src/expressions/expression.cc
@@ -86,7 +86,7 @@
switch (attribute_type) {
case TILEDB_CHAR: {
if (attribute_cell_val_num == 1) {
- mup::Value x_int(mup::int_type(""));
+ mup::Value x_int(mup::int_type(0));
attribute_map_.insert(std::make_pair(name, x_int));
} else {
mup::Value x_str(mup::string_type(""));
|