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 e366106f1268f91f59cc7dca4f8c35a9e8db0fba..eedde6a016db715bb2351ccd26a35f7c7cc9eac8 100644 (file)
@@ -752,12 +752,12 @@ int RAND_pseudo_bytes(unsigned char *buf,int num);
 #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; \
-               (a)->top = top; \
+               (a)->top = __top; \
                } \
        bn_pollute(a); \
        }