diff options
| author | Eli Zaretskii | 2010-09-25 07:55:30 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2010-09-25 07:55:30 -0400 |
| commit | da43f02119eb86ff8a4ee8ce7454b10d261ef714 (patch) | |
| tree | 8b42c4a38e55c29603b7bab7421d75ede479040f /src/marker.c | |
| parent | 41118bd30dd303cf60a70990c5347a6cfdfca1ef (diff) | |
| download | emacs-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/marker.c')
| -rw-r--r-- | src/marker.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/marker.c b/src/marker.c index 34d8bc4e65b..3f8b78e81a8 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -247,11 +247,11 @@ buf_charpos_to_bytepos (struct buffer *b, EMACS_INT charpos) | |||
| 247 | /* Used for debugging: recompute the bytepos corresponding to CHARPOS | 247 | /* Used for debugging: recompute the bytepos corresponding to CHARPOS |
| 248 | in the simplest, most reliable way. */ | 248 | in the simplest, most reliable way. */ |
| 249 | 249 | ||
| 250 | int | 250 | EMACS_INT |
| 251 | verify_bytepos (int charpos) | 251 | verify_bytepos (EMACS_INT charpos) |
| 252 | { | 252 | { |
| 253 | int below = 1; | 253 | EMACS_INT below = 1; |
| 254 | int below_byte = 1; | 254 | EMACS_INT below_byte = 1; |
| 255 | 255 | ||
| 256 | while (below != charpos) | 256 | while (below != charpos) |
| 257 | { | 257 | { |