]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/reveng/poly.c
align clock grid with demods on graph (#276)
[proxmark3-svn] / client / reveng / poly.c
index 1e22b8d27d7a014611a86de4844ccca751ab0bf5..4904dfda30ed61ab05938a197241625d6202c1db 100644 (file)
@@ -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) {
Impressum, Datenschutz