Found by Clang:
occoaphelper.c:93:59: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
It's clearly meant to be a &, as seen by the right shift by 5 and the
constant of 31 (5 bits)
Change-Id: Ie35ad6c313ad53d766fc6fe88ffd03b462d49519
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
break;
default:
- decimal = ((coapCode >> 5) * 100) + (coapCode && 31);
+ decimal = ((coapCode >> 5) * 100) + (coapCode & 31);
if (decimal >= 200 && decimal <= 231)
{
ret = OC_STACK_OK;