Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GLib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simon McVittie
GLib
Commits
80cc5b6c
Commit
80cc5b6c
authored
Dec 17, 2006
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't shadow size parameter
parent
16953c31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
ChangeLog
ChangeLog
+5
-0
glib/gstring.c
glib/gstring.c
+5
-5
No files found.
ChangeLog
View file @
80cc5b6c
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>
2006-12-16 Matthias Clasen <mclasen@redhat.com>
* glib/gstring.c: Move more documentation inline.
* glib/gstring.c: Move more documentation inline.
...
...
glib/gstring.c
View file @
80cc5b6c
...
@@ -139,15 +139,15 @@ GStringChunk*
...
@@ -139,15 +139,15 @@ GStringChunk*
g_string_chunk_new
(
gsize
size
)
g_string_chunk_new
(
gsize
size
)
{
{
GStringChunk
*
new_chunk
=
g_new
(
GStringChunk
,
1
);
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
->
const_table
=
NULL
;
new_chunk
->
storage_list
=
NULL
;
new_chunk
->
storage_list
=
NULL
;
new_chunk
->
storage_next
=
size
;
new_chunk
->
storage_next
=
actual_
size
;
new_chunk
->
default_size
=
size
;
new_chunk
->
default_size
=
actual_
size
;
new_chunk
->
this_size
=
size
;
new_chunk
->
this_size
=
actual_
size
;
return
new_chunk
;
return
new_chunk
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment