diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-08-21 01:05:52 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-08-21 08:06:25 +0000 |
commit | 7b9b8818418bd413341a0b346ab5ed06e1621575 (patch) | |
tree | 5a81f59ab423bd9d47c124b7a75baf10e4bd9da7 /ui | |
parent | 66318ad5eb8235e73e66acee372df7c47cfea8bd (diff) |
Float constants end with "f"; assign float constants to gfloats.
This squelches some compiler warnings about assigning double values to
floats (no, there's no precision in 0 to lose, but the compiler warns
anyway).
Change-Id: Ia49618cb8582c5afcdc5bdc5334fe20724b85eda
Reviewed-on: https://code.wireshark.org/review/3762
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/extcap_gtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/extcap_gtk.c b/ui/gtk/extcap_gtk.c index 69f3908626..84cb662734 100644 --- a/ui/gtk/extcap_gtk.c +++ b/ui/gtk/extcap_gtk.c @@ -434,7 +434,7 @@ GtkWidget *extcap_create_gtk_rangewidget(extcap_arg *argument, GtkWidget *spinButton; GtkAdjustment *adjustment; - gfloat def = 0.0, min = 0.0, max = 0.0; + gfloat def = 0.0f, min = 0.0f, max = 0.0f; switch (argument->arg_type) { case EXTCAP_ARG_INTEGER: |