summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2007-11-28 04:46:22 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2007-11-28 04:46:22 +0000
commitcc648cef36b6911a73cf9927e99a902533dcfe3f (patch)
tree9cdc479fbfb66fdb5a60506f5e87864d09bfea21 /src
parent21ec2c436582ae61ed6c4e8a1549d2924aa3b528 (diff)
downloademacs-cc648cef36b6911a73cf9927e99a902533dcfe3f.tar.gz
(Fget_buffer_create, Fmake_indirect_buffer): Don't cast redundantly.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/buffer.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 508b8e30903..58ce71f5f56 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
+ * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
+ Don't cast redundantly.
+
* keyboard.c (KEY_TO_CHAR): New macro.
(parse_modifiers, apply_modifiers): Accept integer arguments.
(read_key_sequence): Use them to unify the "shift->unshift" mapping
diff --git a/src/buffer.c b/src/buffer.c
index 675992db316..ad76c185c5e 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -348,7 +348,7 @@ The value is never nil. */)
if (SCHARS (name) == 0)
error ("Empty string for buffer name is not allowed");
- b = (struct buffer *) allocate_buffer ();
+ b = allocate_buffer ();
/* An ordinary buffer uses its own struct buffer_text. */
b->text = &b->own_text;
@@ -549,7 +549,7 @@ CLONE nil means the indirect buffer's state is reset to default values. */)
if (SCHARS (name) == 0)
error ("Empty string for buffer name is not allowed");
- b = (struct buffer *) allocate_buffer ();
+ b = allocate_buffer ();
b->base_buffer = (XBUFFER (base_buffer)->base_buffer
? XBUFFER (base_buffer)->base_buffer