Fixing a few warnings that we see coming out of the libcoap bits.h file.
authorErich Keane <erich.keane@intel.com>
Mon, 15 Sep 2014 21:15:43 +0000 (14:15 -0700)
committerErich Keane <erich.keane@intel.com>
Mon, 15 Sep 2014 21:15:43 +0000 (14:15 -0700)
commitf4ab51bf16c5d6bd70c4a9d4b7b29a88e2d66bbc
treee908c79f8a14ec8405eceee57ecb27f0f955c446
parent7d907194d2d399fd5c4d7c9406e70b14fcc45746
Fixing a few warnings that we see coming out of the libcoap bits.h file.

Essentially, the result of the bit-shift on a uint8_t is always upconverted to a signed int despite it being impossible for it to be anything greater than 5 bits long (8 bits, shifted 3 more).  We cast to unsigned size_t to prevent the warning and to prevent unsigned vs signed comparison.

Change-Id: I47d05611e75e55240b55b800c9370dbc019aedd2
csdk/libcoap-4.1.1/bits.h