Use FT_FLOAT for a floating-point number.

Change-Id: If74df214c41baac425fd89e8476578962a5cfde7
Reviewed-on: https://code.wireshark.org/review/8681
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2015-05-28 21:29:33 -07:00
parent 7e3d4f6eb8
commit afb0791e0c
1 changed files with 2 additions and 6 deletions

View File

@ -2220,7 +2220,7 @@ static void dissect_data_for_typecode(tvbuff_t *tvb, packet_info *pinfo, proto_t
break;
case tk_float:
my_float = get_CDR_float(tvb, offset, stream_is_big_endian, boundary);
proto_tree_add_double(tree, hf_giop_type_float, tvb, *offset-4, 4, my_float);
proto_tree_add_float(tree, hf_giop_type_float, tvb, *offset-4, 4, my_float);
break;
case tk_double:
my_double = get_CDR_double(tvb, offset, stream_is_big_endian, boundary);
@ -5301,13 +5301,9 @@ proto_register_giop (void)
FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL }
},
/*
* float as double ?? -- FIX
*/
{ &hf_giop_type_float,
{ "TypeCode float data", "giop.tcfloat",
FT_DOUBLE, BASE_NONE, NULL, 0x0, NULL, HFILL }
FT_FLOAT, BASE_NONE, NULL, 0x0, NULL, HFILL }
},
{ &hf_giop_type_long,