Skip to content

Commit

Permalink
Use BAMTOOLS_LFS macros for Windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
SoapZA committed Oct 31, 2017
1 parent d095a5f commit 9bb82b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/bamtools_fasta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ bool Fasta::FastaPrivate::CreateIndex(const std::string& indexFilename)
FastaIndexData data;

// store file offset of beginning of DNA sequence (after header)
data.Offset = ftello(Stream);
data.Offset = ftell64(Stream);

// parse header, store sequence name in data.Name
if (!GetNameFromHeader(header, data.Name)) {
Expand Down Expand Up @@ -430,7 +430,7 @@ bool Fasta::FastaPrivate::GetSequence(const int& refId, const int& start, const
}

// seek to beginning of sequence data
if (fseeko(Stream, referenceData.Offset, SEEK_SET) != 0) {
if (fseek64(Stream, referenceData.Offset, SEEK_SET) != 0) {
std::cerr << "FASTA error : could not sek in file" << std::endl;
return false;
}
Expand Down Expand Up @@ -571,7 +571,7 @@ bool Fasta::FastaPrivate::Open(const std::string& filename, const std::string& i
bool Fasta::FastaPrivate::Rewind()
{
if (!IsOpen) return false;
return (fseeko(Stream, 0, SEEK_SET) == 0);
return (fseek64(Stream, 0, SEEK_SET) == 0);
}

bool Fasta::FastaPrivate::WriteIndexData()
Expand Down

0 comments on commit 9bb82b5

Please sign in to comment.