minor signed/unsigned warning fixes
[openssl.git] / apps / req.c
index c4594c490c7f07f957588319a48f6536e4779960..5df8f89fcd03f7223e56f2b4b9184400eece5991 100644 (file)
@@ -1322,7 +1322,7 @@ start:            for (;;)
                        /* If OBJ not recognised ignore it */
                        if ((nid=OBJ_txt2nid(type)) == NID_undef) goto start;
                        if (BIO_snprintf(buf,sizeof buf,"%s_default",v->name)
-                               >= sizeof buf)
+                               >= (int)sizeof(buf))
                           {
                           BIO_printf(bio_err,"Name '%s' too long\n",v->name);
                           return 0;
@@ -1387,7 +1387,7 @@ start2:                   for (;;)
                                        goto start2;
 
                                if (BIO_snprintf(buf,sizeof buf,"%s_default",type)
-                                       >= sizeof buf)
+                                       >= (int)sizeof(buf))
                                   {
                                   BIO_printf(bio_err,"Name '%s' too long\n",v->name);
                                   return 0;