--- rtp.c.orig 2007-04-18 20:57:25.000000000 -0400 +++ rtp.c 2007-04-18 20:58:10.000000000 -0400 @@ -1287,7 +1287,7 @@ /* 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; ast_verbose("SEQNO cycled: %u\t%d\n", rtp->cycles, seqno); }