BUG/MINOR: sample: wrong conversion of signed values
authorThierry FOURNIER <tfournier@arpalert.org>
Sat, 6 Jun 2015 17:16:52 +0000 (19:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 13 Jun 2015 20:59:14 +0000 (22:59 +0200)
commit0f811440d5597686bf529dc53ba8fa4fdfe0650c
treea0786cdb41eecb570b7b725434ccefce00165d3b
parent1480bd8dd27dc5bc638acda68b4822fddbfce0d5
BUG/MINOR: sample: wrong conversion of signed values

The signed values are casted as unsigned before conversion. This patch
use the good converters according with the sample type.

Note: it depends on previous patch to parse signed ints.
src/sample.c