Float constants end with "f"; assign float constants to gfloats.
authorGuy Harris <guy@alum.mit.edu>
Thu, 21 Aug 2014 08:05:52 +0000 (01:05 -0700)
committerGuy Harris <guy@alum.mit.edu>
Thu, 21 Aug 2014 08:06:25 +0000 (08:06 +0000)
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>
ui/gtk/extcap_gtk.c

index 69f39086268484365887cd9888390f0506de59cf..84cb662734f03a603499e5148b077dd2e888a9a1 100644 (file)
@@ -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: