Commit 1ee45415 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix a signed/unsigned warning



This causes a compilation failure when using --strict-warnings in 1.0.2
and 1.0.1

Reviewed-by: default avatarViktor Dukhovni <viktor@openssl.org>
(cherry picked from commit 0ca67644)
parent 184ebf0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,
        *inf = 0;
        i = *p & 0x7f;
        if (*(p++) & 0x80) {
            if (i > sizeof(ret) || max < i)
            if (i > sizeof(ret) || max < (long)i)
                return 0;
            while (i-- > 0) {
                ret <<= 8L;