aboutsummaryrefslogtreecommitdiff
path: root/src/io.cpp
diff options
context:
space:
mode:
authorPeter Carbonetto2017-05-09 12:48:27 -0500
committerPeter Carbonetto2017-05-09 12:48:27 -0500
commitf808355cd7abbadd2fbcc5ff471ba89a12205159 (patch)
treeb5b9bef67de6b04d70a4c8b67b2e464b9aee343f /src/io.cpp
parent0f6431e9191acfafc33152a610b87d3d0524c1fe (diff)
downloadpangemma-f808355cd7abbadd2fbcc5ff471ba89a12205159.tar.gz
Putatively fixed -Wc++11-narrowing error in io.cpp (see Issue #24).
Diffstat (limited to 'src/io.cpp')
-rw-r--r--src/io.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/io.cpp b/src/io.cpp
index 4da1590..ccaec30 100644
--- a/src/io.cpp
+++ b/src/io.cpp
@@ -2160,7 +2160,9 @@ bool ReadFile_bgen(const string &file_bgen, const set<string> &setSnps, const gs
uint16_t unzipped_data[3*bgen_N];
if (setSnps.size()!=0 && setSnps.count(rs)==0) {
- SNPINFO sInfo={"-9", rs, -9, -9, minor, major, -9, -9, (long int) -9};
+ SNPINFO sInfo={"-9", rs, -9, -9, minor, major,
+ static_cast<size_t>(-9), -9, (long int) -9};
+
snpInfo.push_back(sInfo);
indicator_snp.push_back(0);
if(CompressedSNPBlocks)