fixed a bug in reverse-complement

This commit is contained in:
Heng Li 2015-08-27 10:44:08 -04:00
parent 3ae437ac13
commit 6c668d3e1a
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ Bytes.prototype.revcomp = function()
this[this.length - i - 1] = Bytes.rctab[this[i]];
this[i] = Bytes.rctab[tmp];
}
if (this.length>>1)
if (this.length&1)
this[this.length>>1] = Bytes.rctab[this[this.length>>1]];
}