mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 01:48:53 +02:00
Correct the initial minimal value to be -G_MAXFLOAT. The initial values
2004-04-15 Matthias Clasen <mclasen@redhat.com> * 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.
This commit is contained in:
committed by
Matthias Clasen
parent
f4d9fcd8d4
commit
ae0c9d95bb
@@ -1,3 +1,12 @@
|
||||
2004-04-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* 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 <otaylor@redhat.com>
|
||||
|
||||
* === Released 2.4.0 ===
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user