From 47ce90e4950290d784889b6b33a2b1fa090f0acf Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 6 Feb 2011 17:24:53 -0800 Subject: [PATCH] * casefiddle.c: conform to C89 pointer rules --- src/ChangeLog | 1 + src/casefiddle.c | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 0c83fb37961..b8972ed72e3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,6 +5,7 @@ * dired.c (scmp, file_name_completion): Change types between char * and unsigned char *, to satisfy C89 rules about pointer type compatibility. + * casefiddle.c (casify_object, casify_region): Likewise. 2011-02-06 Paul Eggert diff --git a/src/casefiddle.c b/src/casefiddle.c index 6f82f99bd26..62d261278ab 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c @@ -142,7 +142,7 @@ casify_object (enum case_action flag, Lisp_Object obj) o += CHAR_STRING (c, o); } eassert (o - dst <= o_size); - obj = make_multibyte_string (dst, size, o - dst); + obj = make_multibyte_string ((char *) dst, size, o - dst); SAFE_FREE (); return obj; } @@ -279,7 +279,7 @@ casify_region (enum case_action flag, Lisp_Object b, Lisp_Object e) keeping text properties the same. */ replace_range_2 (start, start_byte, start + 1, start_byte + len, - str, 1, tolen, + (char *) str, 1, tolen, 0); len = tolen; } @@ -442,4 +442,3 @@ keys_of_casefiddle (void) initial_define_key (meta_map, 'l', "downcase-word"); initial_define_key (meta_map, 'c', "capitalize-word"); } - -- 2.39.5