Skip to content

Commit

Permalink
Fixed bug where the wrong data types were being written/read in the s…
Browse files Browse the repository at this point in the history
…sa files.
  • Loading branch information
jts committed Nov 18, 2011
1 parent a201b3b commit da0254b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SuffixTools/SampledSuffixArray.cpp
Expand Up @@ -192,7 +192,7 @@ void SampledSuffixArray::writeSSA(std::string filename)
SSA_WRITE(n)

// Write lexo index
SSA_WRITE_N(m_saLexoIndex.front(), sizeof(SAElem) * n)
SSA_WRITE_N(m_saLexoIndex.front(), sizeof(SSA_INT_TYPE) * n)

// Write number of samples
n = m_saSamples.size();
Expand Down Expand Up @@ -233,7 +233,7 @@ void SampledSuffixArray::readSSA(std::string filename)
m_saLexoIndex.resize(n);

// Read lexo index
SSA_READ_N(m_saLexoIndex.front(), sizeof(SAElem) * n)
SSA_READ_N(m_saLexoIndex.front(), sizeof(SSA_INT_TYPE) * n)

// Read number of samples
n = 0;
Expand Down

0 comments on commit da0254b

Please sign in to comment.