Skip to content
Browse files

Fixed bug where the wrong data types were being written/read in the s…

…sa files.
  • Loading branch information...
1 parent a201b3b commit da0254b86238e6354eb248a02525c43f4a8588c1 @jts committed Nov 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/SuffixTools/SampledSuffixArray.cpp
View
4 src/SuffixTools/SampledSuffixArray.cpp
@@ -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();
@@ -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;

0 comments on commit da0254b

Please sign in to comment.
Something went wrong with that request. Please try again.