X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/fe81b4781103a51117b904681ad2c259bf16c084..bb4e6dbd62423f5e6907ee44de86b5a57a408d1e:/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) {