compute_pqueue_growth(): Fix the return type master
authorTomas Mraz <tomas@openssl.org>
Mon, 16 Jan 2023 11:26:20 +0000 (12:26 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 27 Jan 2023 15:11:38 +0000 (16:11 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20012)

ssl/priority_queue.c

index 67e85df73fb83962c4edf3b86767f9cf9c246c31..3caf7e24f9c502952cba40a4c49f13255ef033ec 100644 (file)
@@ -85,7 +85,7 @@ static const size_t max_nodes =
  *
  * We use an expansion factor of 8 / 5 = 1.6
  */
-static ossl_inline int compute_pqueue_growth(size_t target, size_t current)
+static ossl_inline size_t compute_pqueue_growth(size_t target, size_t current)
 {
     int err = 0;