forked from osmocom/wireshark
4294967296 is not guaranteed to be a valid integer constant.
It's a floating-point operation, so just use 4294967296.0. Change-Id: I97258c8058821b6d46d740668271c0803617cdc1 Reviewed-on: https://code.wireshark.org/review/11615 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
3a598d96e5
commit
161f449c4e
|
@ -1193,12 +1193,12 @@ static void dissect_isi_gps_data(tvbuff_t *tvb, packet_info *pinfo _U_, proto_it
|
|||
switch(sptype) {
|
||||
case 0x02: /* Position */
|
||||
tmp_double = tvb_get_ntohl(tvb, offset+0);
|
||||
tmp_double = (tmp_double*360)/4294967296;
|
||||
tmp_double = (tmp_double*360)/4294967296.0;
|
||||
if(tmp_double > 180.0) tmp_double -= 360.0;
|
||||
proto_tree_add_double(subtree, hf_isi_gps_latitude, tvb, offset+0, 4, tmp_double);
|
||||
|
||||
tmp_double = tvb_get_ntohl(tvb, offset+4);
|
||||
tmp_double = (tmp_double*360)/4294967296;
|
||||
tmp_double = (tmp_double*360)/4294967296.0;
|
||||
if(tmp_double > 180.0) tmp_double -= 360.0;
|
||||
proto_tree_add_double(subtree, hf_isi_gps_longitude, tvb, offset+4, 4, tmp_double);
|
||||
|
||||
|
|
Loading…
Reference in New Issue