Skip to content

Commit

Permalink
use encode_n
Browse files Browse the repository at this point in the history
  • Loading branch information
ocxtal committed Jan 11, 2018
1 parent 24be476 commit d4fc4c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vertical.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ vertical_affine(
} else {
_s(curr, i) = _f(curr, i) = OFS + _gap(i - bw);
_e(curr, i) = 0;
c[i + 1] = (i - bw) < blen ? encode_b(b[i - bw]) : 0;
c[i + 1] = (i - bw) < blen ? encode_b(b[i - bw]) : encode_n();
}
}
_e(curr, bw) = OFS + gi; /* fix gap cells at (0, 0) */
Expand All @@ -60,7 +60,7 @@ vertical_affine(
prev = curr; curr += _vlen();

/* fetch the next base */
c[bw] = (apos + bw) < blen ? encode_b(b[apos + bw]) : 0;
c[2 * bw] = (apos + bw - 1) < blen ? encode_b(b[apos + bw - 1]) : encode_n();

/* init f */
vec pf, cv(&_s(prev, 0)), ce(&_e(prev, 0));
Expand Down

0 comments on commit d4fc4c5

Please sign in to comment.