This is an automated email from the git hooks/post-receive script.

ppm-guest pushed a commit to annotated tag v0.36
in repository libmath-prime-util-perl.

commit c0b5a3b10791db15b67952de9aab8a91f3ebea49
Author: Dana Jacobsen <d...@acm.org>
Date:   Fri Jan 3 18:01:31 2014 -0800

    Change sieve macro advance to not read ahead (valgrind)
---
 sieve.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sieve.h b/sieve.h
index 0c0baf1..70ff0a1 100644
--- a/sieve.h
+++ b/sieve.h
@@ -94,7 +94,7 @@ static UV prev_prime_in_sieve(const unsigned char* sieve, UV 
p) {
       do { \
         mask_ <<= 1; \
         if (mask_ > 128) { \
-          do { s_ = sieve_[++d_]; } while (d_ <= lastd_ && s_ == 0xFF); \
+          while (++d_ <= lastd_) { s_ = sieve_[d_]; if (s_ != 0xFF) break; } \
           if (d_ > lastd_) break; \
           mask_ = 1; \
         } \

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to