'if (curr_len <= 0)' won't work as desired when curr_len is declared as unsigned.
authorBill Meier <wmeier@newsguy.com>
Thu, 6 Aug 2009 23:47:21 +0000 (23:47 -0000)
committerBill Meier <wmeier@newsguy.com>
Thu, 6 Aug 2009 23:47:21 +0000 (23:47 -0000)
commit4acb7899172a0bd3319677629ecc7954bafc6809
tree0422de349f59a9f33ad7aba112b5d036ba1e46ae
parentc3aaf166c60aec8efc0aae85af836e12d2015564
'if (curr_len <= 0)' won't work as desired when curr_len is declared as unsigned.
The fix: change to 'if ((signed)curr_len <= 0)'.
This is a bit of a hack but I think it works.
See the comment in this file (packet-gsm_a_common.h).

svn path=/trunk/; revision=29319
epan/dissectors/packet-gsm_a_common.h