Use of a 'top' var creates "shadow variable" warnings.
authorGeoff Thorpe <geoff@openssl.org>
Wed, 22 Oct 2008 01:25:45 +0000 (01:25 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Wed, 22 Oct 2008 01:25:45 +0000 (01:25 +0000)
crypto/bn/bn.h

index e366106..eedde6a 100644 (file)
@@ -752,12 +752,12 @@ int RAND_pseudo_bytes(unsigned char *buf,int num);
 #define bn_correct_top(a) \
         { \
         BN_ULONG *ftl; \
 #define bn_correct_top(a) \
         { \
         BN_ULONG *ftl; \
-       int top = (a)->top; \
-       if (top > 0) \
+       int __top = (a)->top; \
+       if (__top > 0) \
                { \
                { \
-               for (ftl= &((a)->d[top-1]); top > 0; top--) \
+               for (ftl= &((a)->d[__top-1]); __top > 0; __top--) \
                        if (*(ftl--)) break; \
                        if (*(ftl--)) break; \
-               (a)->top = top; \
+               (a)->top = __top; \
                } \
        bn_pollute(a); \
        }
                } \
        bn_pollute(a); \
        }