aboutsummaryrefslogtreecommitdiffstats
path: root/src/minibuf.c
diff options
context:
space:
mode:
authorEli Zaretskii2010-09-25 07:55:30 -0400
committerEli Zaretskii2010-09-25 07:55:30 -0400
commitda43f02119eb86ff8a4ee8ce7454b10d261ef714 (patch)
tree8b42c4a38e55c29603b7bab7421d75ede479040f /src/minibuf.c
parent41118bd30dd303cf60a70990c5347a6cfdfca1ef (diff)
downloademacs-da43f02119eb86ff8a4ee8ce7454b10d261ef714.tar.gz
emacs-da43f02119eb86ff8a4ee8ce7454b10d261ef714.zip
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)
236{ 236{
237 struct gcpro gcpro1, gcpro2; 237 struct gcpro gcpro1, gcpro2;
238 Lisp_Object expr_and_pos; 238 Lisp_Object expr_and_pos;
239 int pos; 239 EMACS_INT pos;
240 240
241 GCPRO2 (val, defalt); 241 GCPRO2 (val, defalt);
242 242
@@ -254,7 +254,7 @@ string_to_object (Lisp_Object val, Lisp_Object defalt)
254 { 254 {
255 /* Ignore trailing whitespace; any other trailing junk 255 /* Ignore trailing whitespace; any other trailing junk
256 is an error. */ 256 is an error. */
257 int i; 257 EMACS_INT i;
258 pos = string_char_to_byte (val, pos); 258 pos = string_char_to_byte (val, pos);
259 for (i = pos; i < SBYTES (val); i++) 259 for (i = pos; i < SBYTES (val); i++)
260 { 260 {