BUG/MINOR: channel: CHN_INFINITE_FORWARD must be unsigned
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Dec 2013 18:16:26 +0000 (19:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Dec 2013 20:33:37 +0000 (21:33 +0100)
commit983eb31fd197abc3082f0d3691059adae595d534
treed128b36fef34df2b91c37dfda702829fc3d9b1ce
parenta3ae932d3498eb154604cf319a9c49636c4f859d
BUG/MINOR: channel: CHN_INFINITE_FORWARD must be unsigned

This value is stored as unsigned in chn->to_forward. Having it defined
as signed makes it impossible to pass channel_forward() a previously
saved value because the argument will be zero-extended during the
conversion to long long, while the test will be performed using sign
extension. There is no impact on existing code right now.
include/types/channel.h