diff --git a/main/rtp.c b/main/rtp.c
index a4af4e01ce6bf82cef4de9f954c6620c8c6f4d43..2c5347413c82270a4a95e07cd9924299b633d087 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -1287,7 +1287,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
 		/* Schedule transmission of Receiver Report */
 		rtp->rtcp->schedid = ast_sched_add(rtp->sched, ast_rtcp_calc_interval(rtp), ast_rtcp_write, rtp);
 	}
-	if ( rtp->lastrxseqno - seqno  > 100) /* if so it would indicate that the sender cycled; allow for misordering */
+	if ( (int)rtp->lastrxseqno - (int)seqno  > 100) /* if so it would indicate that the sender cycled; allow for misordering */
 		rtp->cycles += RTP_SEQ_MOD;
 
 	rtp->lastrxseqno = seqno;