X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/0b91ce03e50fd7c4a5fd3d86f1dac984d4867118..2229ee897ec1b2062662da43f7dd8022a9e69fef:/client/reveng/poly.c?ds=sidebyside diff --git a/client/reveng/poly.c b/client/reveng/poly.c index 1e22b8d2..4904dfda 100644 --- a/client/reveng/poly.c +++ b/client/reveng/poly.c @@ -786,15 +786,16 @@ prev(poly_t *poly) { unsigned long fulllength = poly->length + ofs; bmp_t accu; - if(ofs) + if(ofs) { /* removable optimisation */ if(poly->length < (unsigned long) BMP_BIT) { *poly->bitmap = rev(*poly->bitmap >> ofs, (int) poly->length) << ofs; return; } + } - /* claim remaining bits of last word (as we use public function pshift()) */ - poly->length = fulllength; + /* claim remaining bits of last word (as we use public function pshift()) */ + poly->length = fulllength; /* reverse and swap words in the array, leaving it right-justified */ while(leftidx < rightidx) {