aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-12-10 19:57:56 +0100
committerAnders Broman <a.broman58@gmail.com>2014-12-10 20:03:41 +0000
commit2f8030f85a0bfc584deee00a88761355ddd7f941 (patch)
tree0bbc0c54016f3e0a891ab5454aa78593458d1ab7 /asn1
parent088e5fe399bf1997e619fdb80be70b2d20f6974d (diff)
LCSAP: fix dissection of negative longitude and latitude
Bug: 10767 Change-Id: I4ab0ffd3bd22f1884895f3118673b433d980de2f Reviewed-on: https://code.wireshark.org/review/5704 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'asn1')
-rw-r--r--asn1/lcsap/lcsap.cnf4
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/lcsap/lcsap.cnf b/asn1/lcsap/lcsap.cnf
index b6d6594786..fc25e5ee2e 100644
--- a/asn1/lcsap/lcsap.cnf
+++ b/asn1/lcsap/lcsap.cnf
@@ -199,7 +199,7 @@ ProtocolIE-Field/value ie_field_value
proto_item_append_text(actx->created_item, " (%.1f m)", 10 * (pow(1.1, (double)uncertainty_code) - 1));
#.FN_BODY DegreesLatitude VAL_PTR = &degrees
- guint32 degrees;
+ gint32 degrees;
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
0U, 8388607U, &degrees, FALSE);
@@ -207,7 +207,7 @@ ProtocolIE-Field/value ie_field_value
proto_item_append_text(actx->created_item, " (%.5f degrees)", (((double)degrees/8388607) * 90));
#.FN_BODY DegreesLongitude VAL_PTR = &degrees
- guint32 degrees;
+ gint32 degrees;
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
-8388608, 8388607U, &degrees, FALSE);