IOT-25 Jira Bug : RightShift on signed numbers have an undefined behavior. This cause...
authorSachin Agrawal <sachin.agrawal@intel.com>
Mon, 25 Aug 2014 07:43:06 +0000 (00:43 -0700)
committerSachin Agrawal <sachin.agrawal@intel.com>
Mon, 25 Aug 2014 07:43:06 +0000 (00:43 -0700)
    to fail randomly on Arduino Mega boards.

Change-Id: I6b0a7f620b6ef35f67161d5ecb7521cbef4108c8

csdk/libcoap-4.1.1/net.c

index db4462a..60e79be 100644 (file)
@@ -713,7 +713,7 @@ coap_tid_t coap_send(coap_context_t *context,
     coap_tick_t now;
     coap_tid_t tid;
     int bytesWritten;
-    int r;
+    unsigned int r;
 
     if (!context)
         return COAP_INVALID_TID;