[gegl] operation_reference.c: fix wrong variable type
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operation_reference.c: fix wrong variable type
- Date: Thu, 1 Sep 2011 23:11:09 +0000 (UTC)
commit 83bd005865219c63bf962e66c4dc48d8fe0e9fdc
Author: Michael Murà <batolettre gmail com>
Date: Fri Sep 2 00:35:25 2011 +0200
operation_reference.c: fix wrong variable type
tools/operation_reference.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tools/operation_reference.c b/tools/operation_reference.c
index f53bc35..2401f2f 100644
--- a/tools/operation_reference.c
+++ b/tools/operation_reference.c
@@ -128,7 +128,7 @@ list_properties (GType type,
}
else if (g_type_is_a (G_PARAM_SPEC_VALUE_TYPE (self[prop_no]), G_TYPE_INT))
{
- gdouble default_value = G_PARAM_SPEC_INT (self[prop_no])->default_value;
+ gint default_value = G_PARAM_SPEC_INT (self[prop_no])->default_value;
gint min = G_PARAM_SPEC_INT (self[prop_no])->minimum;
gint max = G_PARAM_SPEC_INT (self[prop_no])->maximum;
@@ -154,9 +154,9 @@ list_properties (GType type,
}
else if (g_type_is_a (G_PARAM_SPEC_VALUE_TYPE (self[prop_no]), G_TYPE_FLOAT))
{
- gdouble default_value = G_PARAM_SPEC_FLOAT (self[prop_no])->default_value;
- gdouble min = G_PARAM_SPEC_FLOAT (self[prop_no])->minimum;
- gdouble max = G_PARAM_SPEC_FLOAT (self[prop_no])->maximum;
+ gfloat default_value = G_PARAM_SPEC_FLOAT (self[prop_no])->default_value;
+ gfloat min = G_PARAM_SPEC_FLOAT (self[prop_no])->minimum;
+ gfloat max = G_PARAM_SPEC_FLOAT (self[prop_no])->maximum;
if (default_value<-10000000)
g_print ("-inf ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]