From 25102489f5f0219a3ea701277b6ffccfdfe1053e Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 8 Dec 2016 11:32:17 +0100 Subject: [PATCH] ntp: fix clang warning --- ntp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntp_core.c b/ntp_core.c index 3e88852..9695bd6 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1521,8 +1521,8 @@ receive_packet(NCR_Instance inst, NTP_Local_Address *local_addr, inst->valid_rx = 1; } - if (sample_rx_tss < 0 || sample_rx_tss >= sizeof (tss_chars) || - inst->local_tx.source < 0 || inst->local_tx.source >= sizeof (tss_chars)) + if ((int)sample_rx_tss < 0 || sample_rx_tss >= sizeof (tss_chars) || + (int)inst->local_tx.source < 0 || inst->local_tx.source >= sizeof (tss_chars)) assert(0); DEBUG_LOG(LOGF_NtpCore, "NTP packet lvm=%o stratum=%d poll=%d prec=%d root_delay=%f root_disp=%f refid=%"PRIx32" [%s]",