summaryrefslogtreecommitdiff
path: root/src/minibuf.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2010-09-25 07:55:30 -0400
committerEli Zaretskii <eliz@gnu.org>2010-09-25 07:55:30 -0400
commitda43f02119eb86ff8a4ee8ce7454b10d261ef714 (patch)
tree8b42c4a38e55c29603b7bab7421d75ede479040f /src/minibuf.c
parent41118bd30dd303cf60a70990c5347a6cfdfca1ef (diff)
downloademacs-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.c4
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++)
{