X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sffinfocommand.cpp;h=01338ca34be42556131b15a0ead73c0ef9952858;hb=fbaa6c7ac44f857c1ece7c8199e9e7e09b4bbe74;hp=07334f656d3aaff14c653a14a38d1e0eac38bba9;hpb=5df1b242d9c2b604eb414da44b28de81d52567d7;p=mothur.git diff --git a/sffinfocommand.cpp b/sffinfocommand.cpp index 07334f6..01338ca 100644 --- a/sffinfocommand.cpp +++ b/sffinfocommand.cpp @@ -363,8 +363,8 @@ int SffInfoCommand::readCommonHeader(ifstream& in, CommonHeader& header){ if (header.keySequence.length() > header.keyLength) { header.keySequence = header.keySequence.substr(0, header.keyLength); } /* Pad to 8 chars */ - int spotInFile = in.tellg(); - int spot = (spotInFile + 7)& ~7; // ~ inverts + unsigned long int spotInFile = in.tellg(); + unsigned long int spot = (spotInFile + 7)& ~7; // ~ inverts in.seekg(spot); }else{ @@ -426,8 +426,8 @@ int SffInfoCommand::readHeader(ifstream& in, Header& header){ if (header.name.length() > header.nameLength) { header.name = header.name.substr(0, header.nameLength); } /* Pad to 8 chars */ - int spotInFile = in.tellg(); - int spot = (spotInFile + 7)& ~7; + unsigned long int spotInFile = in.tellg(); + unsigned long int spot = (spotInFile + 7)& ~7; in.seekg(spot); }else{ @@ -478,8 +478,8 @@ int SffInfoCommand::readSeqData(ifstream& in, seqRead& read, int numFlowReads, i } /* Pad to 8 chars */ - int spotInFile = in.tellg(); - int spot = (spotInFile + 7)& ~7; + unsigned long int spotInFile = in.tellg(); + unsigned long int spot = (spotInFile + 7)& ~7; in.seekg(spot); }else{