b2b_logic: fix compiler warning
 - warning: comparison is always false due to limited range of data type