aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-09 12:54:23 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-09 19:55:17 +0000
commit2a0d6a7194413ce557833d258c6da8a626f7bb71 (patch)
tree811d1c5dfae11bec7a07b3a8e598ca9f2fc1b04e /ui
parente5b6721a1d56ae0dbb9630aeceb0366f5294c8bd (diff)
Attempt to squelch a narrowing warning.
Some older versions of Clang appear to think dividing a float by a 64-bit integer is narrowing 64 bits to 32 bits. Change-Id: Ie3148ee6d5d5d0810d01e7d985b8e4320dacf565 Reviewed-on: https://code.wireshark.org/review/29518 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r--ui/io_graph_item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/io_graph_item.c b/ui/io_graph_item.c
index 87c0c4ea01..cf7ce354ee 100644
--- a/ui/io_graph_item.c
+++ b/ui/io_graph_item.c
@@ -204,7 +204,7 @@ double get_io_graph_item(const io_graph_item_t *items_, io_graph_item_unit_t val
break;
case IOG_ITEM_UNIT_CALC_AVERAGE:
if (item->fields) {
- value = item->float_tot / item->fields;
+ value = (double)item->float_tot / item->fields;
} else {
value = 0;
}