File: int_type_initialization.patch

package info (click to toggle)
genomicsdb 1.4.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,788 kB
  • sloc: cpp: 78,988; ansic: 58,119; java: 8,531; python: 2,270; sh: 1,850; perl: 1,621; makefile: 490; xml: 455
file content (17 lines) | stat: -rw-r--r-- 736 bytes parent folder | download
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(""));