From: Miroslav Lichvar Date: Thu, 8 Dec 2016 10:32:17 +0000 (+0100) Subject: ntp: fix clang warning X-Git-Tag: 3.0-pre1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25102489f5f0219a3ea701277b6ffccfdfe1053e;p=thirdparty%2Fchrony.git ntp: fix clang warning --- diff --git a/ntp_core.c b/ntp_core.c index 3e888525..9695bd66 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]",