Module: sems
Branch: master
Commit: d1034dc663e7730ddb7cf77941a3e723509beae4
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=d1034dc663e7730ddb7cf77941a3e723509beae4

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Mon Mar  4 11:59:02 2013 +0100

c/f: suppress warnings related to signedness

---

 apps/sbc/RegisterCache.cpp  |    2 +-
 apps/sbc/RegisterDialog.cpp |    2 +-
 core/AmPlayoutBuffer.cpp    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/apps/sbc/RegisterCache.cpp b/apps/sbc/RegisterCache.cpp
index 2c72240..ab4f8f8 100644
--- a/apps/sbc/RegisterCache.cpp
+++ b/apps/sbc/RegisterCache.cpp
@@ -640,7 +640,7 @@ bool _RegisterCache::throttleRegister(RegisterCacheCtx& ctx,
       }
 
       if(contact_expires && ctx.max_ua_expires &&
-        (contact_expires > ctx.max_ua_expires)) {
+        (contact_expires > (long int)ctx.max_ua_expires)) {
 
        contact_expires = ctx.max_ua_expires;
        contact_it->params["expires"] = long2str(contact_expires);
diff --git a/apps/sbc/RegisterDialog.cpp b/apps/sbc/RegisterDialog.cpp
index f7bb960..d328a19 100644
--- a/apps/sbc/RegisterDialog.cpp
+++ b/apps/sbc/RegisterDialog.cpp
@@ -215,7 +215,7 @@ int RegisterDialog::fixUacContacts(const AmSipRequest& req)
        DBG("max_ua_expire = %u", max_ua_expire);
        DBG("contact_expires = %u", contact_expires);
        DBG("reg_expires = %li", reg_binding.reg_expire - now.tv_sec);
-       if(contact_expires + 4 /* 2 seconds buffer */ 
+       if((long int)contact_expires + 4 /* 2 seconds buffer */ 
           < reg_binding.reg_expire - now.tv_sec) {
          
          reg_cache_reply = reg_cache_reply && true;
diff --git a/core/AmPlayoutBuffer.cpp b/core/AmPlayoutBuffer.cpp
index 4f91133..e38231a 100644
--- a/core/AmPlayoutBuffer.cpp
+++ b/core/AmPlayoutBuffer.cpp
@@ -490,7 +490,7 @@ u_int32_t AmAdaptivePlayout::time_scale(u_int32_t ts, float 
factor,
        ts, s, act_fact, factor, (long)wsola_off);
 #endif
     // break condition: coming to the end of the frame (with safety margin)
-    if(p_buf_end - tmpl < TEMPLATE_SEG + DELTA)
+    if((unsigned int)(p_buf_end - tmpl) < TEMPLATE_SEG + DELTA)
       break;
 
     // streched enough?

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to