diff options
author | Eli Zaretskii <eliz@gnu.org> | 2010-09-25 07:55:30 -0400 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2010-09-25 07:55:30 -0400 |
commit | da43f02119eb86ff8a4ee8ce7454b10d261ef714 (patch) | |
tree | 8b42c4a38e55c29603b7bab7421d75ede479040f /src/minibuf.c | |
parent | 41118bd30dd303cf60a70990c5347a6cfdfca1ef (diff) | |
download | emacs-da43f02119eb86ff8a4ee8ce7454b10d261ef714.tar.gz |
Fix int/EMACS_INT use in lread.c, marker.c, minibuf.c, print.c
print.c (print_object, print_string, strout): Use EMACS_INT for
string indices.
minibuf.c (string_to_object): Use EMACS_INT for string position
and size.
marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
lread.c <read_from_string_index, read_from_string_index_byte>
<read_from_string_limit, readchar_count>: Define EMACS_INT.
(readchar, unreadchar, read_internal_start): Use EMACS_INT for
buffer positions and string length.
Diffstat (limited to 'src/minibuf.c')
-rw-r--r-- | src/minibuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 2b21fa6a06f..f3a24afc199 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -236,7 +236,7 @@ string_to_object (Lisp_Object val, Lisp_Object defalt) { struct gcpro gcpro1, gcpro2; Lisp_Object expr_and_pos; - int pos; + EMACS_INT pos; GCPRO2 (val, defalt); @@ -254,7 +254,7 @@ string_to_object (Lisp_Object val, Lisp_Object defalt) { /* Ignore trailing whitespace; any other trailing junk is an error. */ - int i; + EMACS_INT i; pos = string_char_to_byte (val, pos); for (i = pos; i < SBYTES (val); i++) { |