[aravis] float_node: return MAXDOUBLE if min or max is not set.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] float_node: return MAXDOUBLE if min or max is not set.
- Date: Wed, 4 Sep 2013 09:11:53 +0000 (UTC)
commit 1f239d59154d74b2000cb79122908b8cc472b012
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed Sep 4 11:10:46 2013 +0200
float_node: return MAXDOUBLE if min or max is not set.
It's then consistent with the function return type.
src/arvgcfloatnode.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/arvgcfloatnode.c b/src/arvgcfloatnode.c
index b225224..48e646c 100644
--- a/src/arvgcfloatnode.c
+++ b/src/arvgcfloatnode.c
@@ -209,13 +209,13 @@ arv_gc_float_node_get_min (ArvGcFloat *gc_float, GError **error)
double value;
if (gc_float_node->minimum == NULL)
- return -G_MAXFLOAT;
+ return -G_MAXDOUBLE;
value = arv_gc_property_node_get_double (ARV_GC_PROPERTY_NODE (gc_float_node->minimum), &local_error);
if (local_error != NULL) {
g_propagate_error (error, local_error);
- return -G_MAXFLOAT;
+ return -G_MAXDOUBLE;
}
return value;
@@ -229,13 +229,13 @@ arv_gc_float_node_get_max (ArvGcFloat *gc_float, GError **error)
double value;
if (gc_float_node->maximum == NULL)
- return G_MAXFLOAT;
+ return G_MAXDOUBLE;
value = arv_gc_property_node_get_double (ARV_GC_PROPERTY_NODE (gc_float_node->maximum), &local_error);
if (local_error != NULL) {
g_propagate_error (error, local_error);
- return G_MAXFLOAT;
+ return G_MAXDOUBLE;
}
return value;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]