Remove a (UINT) cast to silence a VC6 compiler warning
authorSteve Hay <SteveHay@planit.com>
Fri, 28 Jul 2006 16:37:48 +0000 (16:37 +0000)
committerSteve Hay <SteveHay@planit.com>
Fri, 28 Jul 2006 16:37:48 +0000 (16:37 +0000)
(this was added by #27352, but Digest-SHA-5.37 changed the
loop variable to be signed so the cast now needs to go).
Also bump the VERSION since #27482 has not yet been applied
to the CPAN version.

p4raw-id: //depot/perl@28630

ext/Digest/SHA/SHA.pm
ext/Digest/SHA/src/sha.c

index 320838e..d257996 100644 (file)
@@ -6,7 +6,7 @@ use strict;
 use warnings;
 use integer;
 
-our $VERSION = '5.42';
+our $VERSION = '5.42_01';
 
 require Exporter;
 our @ISA = qw(Exporter);
index 12be3f8..3a5bacc 100644 (file)
@@ -527,7 +527,7 @@ SHA *s;
                return(0);
        SHA_fprintf(f, "alg:%d\nH", s->alg);
        for (i = 0; i < 8; i++)
-               for (j = 0; j < (UINT) (s->alg <= 256 ? 4 : 8); j++)
+               for (j = 0; j < (s->alg <= 256 ? 4 : 8); j++)
                        SHA_fprintf(f, "%s%02x", j==0 ? ":" : "", *p++);
        SHA_fprintf(f, "\nblock");
        for (i = 0; i < (int) (s->blocksize >> 3); i++)