Commit bfd1c781 authored by Paul Eggert's avatar Paul Eggert

* alloc.c (string_overrun_cookie): Now const. Use initializers that

don't formally overflow signed char, to avoid warnings.
parent 83998b7a
......@@ -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>
......
......@@ -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] =
{ 0xde, 0xad, 0xbe, 0xef };
static char const string_overrun_cookie[GC_STRING_OVERRUN_COOKIE_SIZE] =
{ '\xde', '\xad', '\xbe', '\xef' };
#else
#define GC_STRING_OVERRUN_COOKIE_SIZE 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment