diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-06-05 18:54:56 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2017-06-05 17:52:44 +0000 |
commit | eb15222af228a9f08ba7031ddec635f0e08300c5 (patch) | |
tree | 0a8ae59388a5d8e185162ebae34a5aa3306e9919 /ui | |
parent | 345046c83d780c6c32a729ce5945b869f27c37f5 (diff) | |
download | wireshark-eb15222af228a9f08ba7031ddec635f0e08300c5.tar.gz |
Qt: Build wireless_timeline.cpp with -Wshorten-64-to-32
[...]/wireshark/ui/qt/wireless_timeline.cpp:190:50: error: implicit
conversion loses integer precision: 'unsigned long' to 'guint' (aka 'unsigned int')
[-Werror,-Wshorten-64-to-32]
guint half_window = (end_tsf - start_tsf)/2;
~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~
Change-Id: I675408f8a6c0809588ce89b2b98e05d7bfb10ed9
Reviewed-on: https://code.wireshark.org/review/21969
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/wireless_timeline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/wireless_timeline.cpp b/ui/qt/wireless_timeline.cpp index 7fb583528c..97fc3255c0 100644 --- a/ui/qt/wireless_timeline.cpp +++ b/ui/qt/wireless_timeline.cpp @@ -187,7 +187,7 @@ void WirelessTimeline::packetSelectionChanged() guint left_margin = 0.9 * start_tsf + 0.1 * end_tsf; guint right_margin = 0.1 * start_tsf + 0.9 * end_tsf; - guint half_window = (end_tsf - start_tsf)/2; + guint64 half_window = (end_tsf - start_tsf)/2; if (wr) { // are we to the left of the left margin? |