Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
bfd1c781
Commit
bfd1c781
authored
Apr 17, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* alloc.c (string_overrun_cookie): Now const. Use initializers that
don't formally overflow signed char, to avoid warnings.
parent
83998b7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/ChangeLog
src/ChangeLog
+2
-0
src/alloc.c
src/alloc.c
+2
-2
No files found.
src/ChangeLog
View file @
bfd1c781
...
...
@@ -2,6 +2,8 @@
* alloc.c (BLOCK BYTES): Fix typo by changing "ablock" to "ablocks".
This doesn't fix a bug but makes the code clearer.
(string_overrun_cookie): Now const. Use initializers that
don't formally overflow signed char, to avoid warnings.
2011-04-17 Chong Yidong <cyd@stupidchicken.com>
...
...
src/alloc.c
View file @
bfd1c781
...
...
@@ -1628,8 +1628,8 @@ static EMACS_INT total_string_size;
presence of this cookie during GC. */
#define GC_STRING_OVERRUN_COOKIE_SIZE 4
static char string_overrun_cookie[GC_STRING_OVERRUN_COOKIE_SIZE] =
{
0
xde,
0
xad,
0
xbe,
0
xef };
static char
const
string_overrun_cookie[GC_STRING_OVERRUN_COOKIE_SIZE] =
{
'\
xde
'
,
'\
xad
'
,
'\
xbe
'
,
'\
xef
'
};
#else
#define GC_STRING_OVERRUN_COOKIE_SIZE 0
...
...
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