Signed/unsigned compare.
authorBen Laurie <ben@links.org>
Fri, 15 Apr 2016 08:45:25 +0000 (09:45 +0100)
committerBen Laurie <ben@links.org>
Mon, 18 Apr 2016 09:21:56 +0000 (10:21 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
apps/speed.c

index 345e539b5f6b3371889735c8e227905322a14bf1..ee6a4b2d578e8c5451b9e289474cbff8046918f0 100644 (file)
@@ -1160,7 +1160,7 @@ static int run_benchmark(int async_jobs, int (*loop_function)(void *), loopargs_
                 max_fd = job_fd;
         }
 
-        if (max_fd >= FD_SETSIZE) {
+        if (max_fd >= (OSSL_ASYNC_FD)FD_SETSIZE) {
             BIO_printf(bio_err,
                     "Error: max_fd (%d) must be smaller than FD_SETSIZE (%d). "
                     "Decrease the value of async_jobs\n",