From 8792bbbd28a3f770c7dc951c8d41f3f0f2cc0a56 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Sun, 12 Jul 1998 14:43:03 +0000 Subject: fix float argument collection (always casted to doubles upon argument Sun Jul 12 16:40:06 1998 Tim Janik * gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument collection (always casted to doubles upon argument passing). --- gtk/gtkargcollector.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk/gtkargcollector.c') diff --git a/gtk/gtkargcollector.c b/gtk/gtkargcollector.c index 30b657d9c..33fd8ca57 100644 --- a/gtk/gtkargcollector.c +++ b/gtk/gtkargcollector.c @@ -33,7 +33,7 @@ gtk_arg_collect_value (GtkType fundamental_type, error_msg = g_strdup ("invalid untyped argument"); break; case GTK_TYPE_NONE: - error_msg = g_strdup ("invalid argument type `void'"); + /* error_msg = g_strdup ("invalid argument type `void'"); */ break; case GTK_TYPE_CHAR: GTK_VALUE_CHAR (*arg) = va_arg (*var_args, gchar); @@ -60,7 +60,8 @@ gtk_arg_collect_value (GtkType fundamental_type, GTK_VALUE_ULONG (*arg) = va_arg (*var_args, gulong); break; case GTK_TYPE_FLOAT: - GTK_VALUE_FLOAT (*arg) = va_arg (*var_args, gfloat); + /* GTK_VALUE_FLOAT (*arg) = va_arg (*var_args, gfloat); */ + GTK_VALUE_FLOAT (*arg) = va_arg (*var_args, gdouble); break; case GTK_TYPE_DOUBLE: GTK_VALUE_DOUBLE (*arg) = va_arg (*var_args, gdouble); -- cgit v1.2.1