Cast to avoid signedness confusion
authorRichard Levitte <levitte@openssl.org>
Sun, 26 Apr 2009 12:16:08 +0000 (12:16 +0000)
committerRichard Levitte <levitte@openssl.org>
Sun, 26 Apr 2009 12:16:08 +0000 (12:16 +0000)
apps/dgst.c

index 5981490..b148727 100644 (file)
@@ -594,7 +594,7 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
        else
                {
                len=BIO_gets(bp,(char *)buf,BUFSIZE);
-               if (len <0) 
+               if ((int)len <0)
                        {
                        ERR_print_errors(bio_err);
                        return 1;