diff options
author | João Valverde <j@v6e.pt> | 2022-07-21 12:44:49 +0100 |
---|---|---|
committer | A Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2022-08-02 13:16:46 +0000 |
commit | 80f16015e2af296fb5ab8f676979bfed9731171f (patch) | |
tree | dfb8ee5ec394efce82985c6643917d082339e424 /plugins | |
parent | 269e4b7d10757df04a4d4122ebeb68edf7713922 (diff) |
epan: Refactor floating point display types
Remove the redundant BASE_FLOAT field display type. The name
BASE_FLOAT is meaningless and the value aliased to BASE_NONE.
Require BASE_NONE instead of BASE_FLOAT (corresponding to
the printf() %g format).
Add new float display types using BASE_DEC, BASE_HEX and BASE_EXP
corresponfing to %f, %a and %e respectively.
Add support for BASE_CUSTOM with floats.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/epan/profinet/packet-pn-rtc-one.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/epan/profinet/packet-pn-rtc-one.c b/plugins/epan/profinet/packet-pn-rtc-one.c index 0261188b07..668c3cc1a2 100644 --- a/plugins/epan/profinet/packet-pn-rtc-one.c +++ b/plugins/epan/profinet/packet-pn-rtc-one.c @@ -1316,7 +1316,7 @@ init_pn_io_rtc1(int proto) }, { &hf_pn_pa_profile_value_float, { "Value", "pn_io.pa.value", - FT_FLOAT, BASE_FLOAT, NULL, 0x0, + FT_FLOAT, BASE_NONE, NULL, 0x0, NULL, HFILL } }, }; |