From 86c333e79ee9bcbe35d5acff2e2d6e1ba242e529 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Wed, 17 Aug 2022 16:57:26 +0100 Subject: [PATCH] Add explicit cast to satisfy compiler Signed-off-by: Dave Rodgman --- library/ssl_ticket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_ticket.c b/library/ssl_ticket.c index cdccf2e17..359686afa 100644 --- a/library/ssl_ticket.c +++ b/library/ssl_ticket.c @@ -130,7 +130,7 @@ static int ssl_ticket_update_keys( mbedtls_ssl_ticket_context *ctx ) #endif if( current_time >= key_time && - current_time - key_time < ctx->ticket_lifetime ) + (uint64_t) ( current_time - key_time ) < ctx->ticket_lifetime ) { return( 0 ); }