diff options
author | Peter Carbonetto | 2017-05-09 12:48:27 -0500 |
---|---|---|
committer | Peter Carbonetto | 2017-05-09 12:48:27 -0500 |
commit | f808355cd7abbadd2fbcc5ff471ba89a12205159 (patch) | |
tree | b5b9bef67de6b04d70a4c8b67b2e464b9aee343f /src/io.cpp | |
parent | 0f6431e9191acfafc33152a610b87d3d0524c1fe (diff) | |
download | pangemma-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.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |