Add explicit cast to satisfy compiler

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2022-08-17 16:57:26 +01:00
parent 536f28c892
commit 86c333e79e

View file

@ -130,7 +130,7 @@ static int ssl_ticket_update_keys( mbedtls_ssl_ticket_context *ctx )
#endif #endif
if( current_time >= key_time && if( current_time >= key_time &&
current_time - key_time < ctx->ticket_lifetime ) (uint64_t) ( current_time - key_time ) < ctx->ticket_lifetime )
{ {
return( 0 ); return( 0 );
} }