1
Vote

Brackets required in "Approximate buffer required" calculation

description

The current code in JamaaTech.Smpp.Net.Lib.Protocol.SmppAddress.GetBytes (".\jamaasmpp_ad35e32d9dfe\JamaaTech.SMPP.Net.Lib\Protocol\SmppAddress.cs"):
int capacity = 4 + vAddress == null ? 1 : vAddress.Length;
should be
int capacity = 4 + (vAddress == null) ? 1 : vAddress.Length;

comments