A stringified double can be longer than 32 chars - fix space calculation

* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
This commit is contained in:
Elliot Lee 2000-04-10 05:30:24 +00:00
parent 6cf3b7866d
commit cbb5e7af5f
10 changed files with 42 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-04-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
Fri Mar 24 03:34:02 2000 Tim Janik <timj@gtk.org>
* glib.h: put a comment for the g_datalist_ and g_dataset_ API, that

View File

@ -1,3 +1,8 @@
2000-04-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
Fri Mar 24 03:34:02 2000 Tim Janik <timj@gtk.org>
* glib.h: put a comment for the g_datalist_ and g_dataset_ API, that

View File

@ -1,3 +1,8 @@
2000-04-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
Fri Mar 24 03:34:02 2000 Tim Janik <timj@gtk.org>
* glib.h: put a comment for the g_datalist_ and g_dataset_ API, that

View File

@ -1,3 +1,8 @@
2000-04-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
Fri Mar 24 03:34:02 2000 Tim Janik <timj@gtk.org>
* glib.h: put a comment for the g_datalist_ and g_dataset_ API, that

View File

@ -1,3 +1,8 @@
2000-04-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
Fri Mar 24 03:34:02 2000 Tim Janik <timj@gtk.org>
* glib.h: put a comment for the g_datalist_ and g_dataset_ API, that

View File

@ -1,3 +1,8 @@
2000-04-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
Fri Mar 24 03:34:02 2000 Tim Janik <timj@gtk.org>
* glib.h: put a comment for the g_datalist_ and g_dataset_ API, that

View File

@ -1,3 +1,8 @@
2000-04-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
Fri Mar 24 03:34:02 2000 Tim Janik <timj@gtk.org>
* glib.h: put a comment for the g_datalist_ and g_dataset_ API, that

View File

@ -1,3 +1,8 @@
2000-04-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
Fri Mar 24 03:34:02 2000 Tim Janik <timj@gtk.org>
* glib.h: put a comment for the g_datalist_ and g_dataset_ API, that

View File

@ -897,7 +897,7 @@ g_printf_string_upper_bound (const gchar* format,
else
#endif /* HAVE_LONG_DOUBLE */
(void) va_arg (args, double);
len += extra_long ? 64 : 32;
len += extra_long ? 128 : 64;
done = TRUE;
break;
case 'c':

View File

@ -897,7 +897,7 @@ g_printf_string_upper_bound (const gchar* format,
else
#endif /* HAVE_LONG_DOUBLE */
(void) va_arg (args, double);
len += extra_long ? 64 : 32;
len += extra_long ? 128 : 64;
done = TRUE;
break;
case 'c':