Skip to content

Commit

Permalink
rec: use gaps in exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Ezra committed Dec 17, 2013
1 parent 2f88abc commit 56c389a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -90,8 +90,8 @@ test: all
for f in $(TEST_FILES) ; do \
echo $$f $$l... ; \
rm /tmp/mytst.* || true; \
./slimfastq -u $$f -f /tmp/mytst -o -l $$l -q && \
./slimfastq -u /tmp/mytst.fastq -f /tmp/mytst -o -d && \
./slimfastq -u $$f -f /tmp/mytst -O -l $$l -q && \
./slimfastq -u /tmp/mytst.fastq -f /tmp/mytst -O -d && \
tools/mydiff.pl $$f /tmp/mytst.fastq || break ; \
done || break ; \
done
Expand Down
5 changes: 3 additions & 2 deletions recs.cpp
Expand Up @@ -195,7 +195,8 @@ void RecSave::save_2(const UCHAR* buf, const UCHAR* end, const UCHAR* prev_buf,
// put_type(0, ST_LINE);
// put_str (0, buf, end-buf);
// last_map = 0;
x_file->put(g_record_count);
x_file->put(g_record_count - m_last.index);
m_last.index = g_record_count;
x_file->put_str(buf, end-buf);

stats.new_n ++ ;
Expand Down Expand Up @@ -255,7 +256,7 @@ size_t RecLoad::load_2(UCHAR* buf, const UCHAR* prev) {
// last_map = 0;
// UCHAR* b = get_str(0, buf);
UCHAR* b = x_file->get_str(buf);
m_last.index = x_file->get();
m_last.index += x_file->get();
return b - buf;
}

Expand Down

0 comments on commit 56c389a

Please sign in to comment.