From ae0c9d95bb38ba271ae70ec65e372560e9b5ce4f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 15 Apr 2004 16:45:31 +0000 Subject: [PATCH] Correct the initial minimal value to be -G_MAXFLOAT. The initial values 2004-04-15 Matthias Clasen * gparamspecs.c (param_float_init): Correct the initial minimal value to be -G_MAXFLOAT. The initial values were inconsistant before, with the initial default being smaller than the inital minimum. (param_double_init): Correct the initial minimal value to be -G_MAXDOUBLE. * glib/tmpl/types.sgml: Correct the description of the gfloat and gdouble ranges. --- docs/reference/ChangeLog | 5 +++++ docs/reference/glib/tmpl/types.sgml | 4 ++-- gobject/ChangeLog | 9 +++++++++ gobject/gparamspecs.c | 4 ++-- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 089d35b..4dd14ac 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2004-04-15 Matthias Clasen + + * glib/tmpl/types.sgml: Correct the description of the + gfloat and gdouble ranges. + Tue Mar 16 12:06:09 2004 Owen Taylor * === Released 2.4.0 === diff --git a/docs/reference/glib/tmpl/types.sgml b/docs/reference/glib/tmpl/types.sgml index a0ce13f..d9eec44 100644 --- a/docs/reference/glib/tmpl/types.sgml +++ b/docs/reference/glib/tmpl/types.sgml @@ -194,14 +194,14 @@ This macro is used to insert 64-bit integer literals into the source code. Corresponds to the standard C float type. -Values of this type can range from #G_MINFLOAT to #G_MAXFLOAT. +Values of this type can range from -#G_MAXFLOAT to #G_MAXFLOAT. Corresponds to the standard C double type. -Values of this type can range from #G_MINDOUBLE to #G_MAXDOUBLE. +Values of this type can range from -#G_MAXDOUBLE to #G_MAXDOUBLE. diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 75ef476..8150613 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,12 @@ +2004-04-15 Matthias Clasen + + * gparamspecs.c (param_float_init): Correct the initial + minimal value to be -G_MAXFLOAT. The initial values were + inconsistant before, with the initial default being smaller + than the inital minimum. + (param_double_init): Correct the initial minimal value + to be -G_MAXDOUBLE. + Tue Mar 9 09:16:11 2004 Owen Taylor * === Released 2.4.0 === diff --git a/gobject/gparamspecs.c b/gobject/gparamspecs.c index 93f9b9d..b4a71a3 100644 --- a/gobject/gparamspecs.c +++ b/gobject/gparamspecs.c @@ -497,7 +497,7 @@ param_float_init (GParamSpec *pspec) { GParamSpecFloat *fspec = G_PARAM_SPEC_FLOAT (pspec); - fspec->minimum = G_MINFLOAT; + fspec->minimum = -G_MAXFLOAT; fspec->maximum = G_MAXFLOAT; fspec->default_value = 0; fspec->epsilon = G_FLOAT_EPSILON; @@ -540,7 +540,7 @@ param_double_init (GParamSpec *pspec) { GParamSpecDouble *dspec = G_PARAM_SPEC_DOUBLE (pspec); - dspec->minimum = G_MINDOUBLE; + dspec->minimum = -G_MAXDOUBLE; dspec->maximum = G_MAXDOUBLE; dspec->default_value = 0; dspec->epsilon = G_DOUBLE_EPSILON; -- 2.7.4