mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-10 21:50:37 -08:00
* fns.c (substring_both): Remove var that is set but not used.
This commit is contained in:
parent
e610eacace
commit
0bc0b309f6
2 changed files with 3 additions and 8 deletions
|
|
@ -1,5 +1,7 @@
|
|||
2011-04-03 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* fns.c (substring_both): Remove var that is set but not used.
|
||||
|
||||
* eval.c (funcall_lambda): Rename local to avoid shadowing.
|
||||
|
||||
* alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.
|
||||
|
|
|
|||
|
|
@ -1247,17 +1247,10 @@ substring_both (Lisp_Object string, EMACS_INT from, EMACS_INT from_byte,
|
|||
{
|
||||
Lisp_Object res;
|
||||
EMACS_INT size;
|
||||
EMACS_INT size_byte;
|
||||
|
||||
CHECK_VECTOR_OR_STRING (string);
|
||||
|
||||
if (STRINGP (string))
|
||||
{
|
||||
size = SCHARS (string);
|
||||
size_byte = SBYTES (string);
|
||||
}
|
||||
else
|
||||
size = ASIZE (string);
|
||||
size = STRINGP (string) ? SCHARS (string) : ASIZE (string);
|
||||
|
||||
if (!(0 <= from && from <= to && to <= size))
|
||||
args_out_of_range_3 (string, make_number (from), make_number (to));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue