From 9956f974abc14600dcab12fb333f98932cd50fd2 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 16 Oct 2020 17:57:20 +0000 Subject: Add an explicit cast to make this test compile and pass with gcc. gcc emits a signed vs unsigned comparison warning which breaks the build due to -Werror. --- src/regress/lib/libssl/dtls/dtlstest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libssl/dtls/dtlstest.c b/src/regress/lib/libssl/dtls/dtlstest.c index c25800be19..ae8075f709 100644 --- a/src/regress/lib/libssl/dtls/dtlstest.c +++ b/src/regress/lib/libssl/dtls/dtlstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dtlstest.c,v 1.3 2020/10/15 18:05:06 jsing Exp $ */ +/* $OpenBSD: dtlstest.c,v 1.4 2020/10/16 17:57:20 tb Exp $ */ /* * Copyright (c) 2020 Joel Sing * @@ -100,7 +100,7 @@ bio_packet_monkey_ctrl(BIO *bio, int cmd, long num, void *ptr) return 1; case BIO_C_DROP_RANDOM: - if (num < 0 || num > UINT_MAX) + if (num < 0 || (size_t)num > UINT_MAX) return 0; ctx->drop_rand = (unsigned int)num; return 1; -- cgit v1.2.3-55-g6feb