Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
A stringified double can be longer than 32 chars - fix space calculation
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Elliot Lee committed Apr 10, 2000
1 parent 6cf3b78 commit cbb5e7a
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-0
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-10
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-12
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-2
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-4
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-6
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-8
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion glib/gstrfuncs.c
Expand Up @@ -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':
Expand Down
2 changes: 1 addition & 1 deletion gstrfuncs.c
Expand Up @@ -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':
Expand Down

0 comments on commit cbb5e7a

Please sign in to comment.