pdu.c [-Wtype-limites] the comparison was always true due
to the range of data types.
Change-Id: If7981691218a3eece4da1941d5d5679266c401a9
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8977
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
{
return coap_tcp_16bit;
}
- else if (size - COAP_TCP_LENGTH_FIELD_32_BIT < ULONG_MAX)
+ else //if (size - COAP_TCP_LENGTH_FIELD_32_BIT < ULONG_MAX) always true due to range of data types
{
return coap_tcp_32bit;
}
-
- return -1;
}
coap_transport_type coap_get_tcp_header_type_from_initbyte(unsigned int length)