On Wed, Jul 21, 2010 at 4:57 PM, Brian Oleksa <[email protected]> wrote: > Should latitude be a FT_FLOAT, FT_DOUBLE or what I have FT_UINT32. No > matter what I try...I get the conversion from double to int possible > loss of data error.
Use FT_DOUBLE and try something like this: double latitude = tvb_get_ntohl (tvb, offset) / 1000000 - 90.0; proto_tree_add_double(olsr_sub_tree, hf_olsr_latitude, tvb, offset, 4, latitude); -- Stig Bjørlykke ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <[email protected]> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:[email protected]?subject=unsubscribe
