mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 16:03:40 +02:00
Don't shadow size parameter
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2006-12-17 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gstring.c (g_string_chunk_new): Don't shadow size.
|
||||
(#386760, Kazuki IWAMOTO)
|
||||
|
||||
2006-12-16 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gstring.c: Move more documentation inline.
|
||||
|
@@ -139,15 +139,15 @@ GStringChunk*
|
||||
g_string_chunk_new (gsize size)
|
||||
{
|
||||
GStringChunk *new_chunk = g_new (GStringChunk, 1);
|
||||
gsize size = 1;
|
||||
gsize actual_size = 1;
|
||||
|
||||
size = nearest_power (1, size);
|
||||
actual_size = nearest_power (1, size);
|
||||
|
||||
new_chunk->const_table = NULL;
|
||||
new_chunk->storage_list = NULL;
|
||||
new_chunk->storage_next = size;
|
||||
new_chunk->default_size = size;
|
||||
new_chunk->this_size = size;
|
||||
new_chunk->storage_next = actual_size;
|
||||
new_chunk->default_size = actual_size;
|
||||
new_chunk->this_size = actual_size;
|
||||
|
||||
return new_chunk;
|
||||
}
|
||||
|
Reference in New Issue
Block a user