[libmath-prime-util-perl] 85/181: fix declaration after code and redefinition warning for Win32

Partha P. Mukherjee ppm-guest at moszumanska.debian.org
Thu May 21 18:51:09 UTC 2015


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 c1aa052c950cb19dcb6c9427d5b911de9fd83aa4
Author: bulk88 <bulk88 at hotmail.com>
Date:   Tue Dec 31 19:56:39 2013 -0500

    fix declaration after code and redefinition warning for Win32
---
 lmo.c    | 3 ++-
 ptypes.h | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lmo.c b/lmo.c
index 359b4e8..e519dff 100644
--- a/lmo.c
+++ b/lmo.c
@@ -267,8 +267,9 @@ UV legendre_phi(UV x, UV a) {
     UV p  = _XS_nth_prime(c);
     UV pa = _XS_nth_prime(a);
     for (i = c+1; i <= a; i++) {
+      UV xp;
       p = _XS_next_prime(p);
-      UV xp = x/p;
+      xp = x/p;
       if (xp < p) {
         while (x < pa) {
           a--;
diff --git a/ptypes.h b/ptypes.h
index 1d7dc20..409feb8 100644
--- a/ptypes.h
+++ b/ptypes.h
@@ -91,6 +91,7 @@ typedef __int8 int8_t;
     #define HAVE_STD_U64 1
   #endif
 #elif defined(_MSC_VER)   /* We set up the types earlier */
+ #undef HAVE_STD_U64
  #define HAVE_STD_U64 1
 #endif
 

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



More information about the Pkg-perl-cvs-commits mailing list