From f808355cd7abbadd2fbcc5ff471ba89a12205159 Mon Sep 17 00:00:00 2001 From: Peter Carbonetto Date: Tue, 9 May 2017 12:48:27 -0500 Subject: Putatively fixed -Wc++11-narrowing error in io.cpp (see Issue #24). --- src/io.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 &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(-9), -9, (long int) -9}; + snpInfo.push_back(sInfo); indicator_snp.push_back(0); if(CompressedSNPBlocks) -- cgit v1.2.3