diff options
| author | Richard M. Stallman | 1997-06-02 00:32:20 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-06-02 00:32:20 +0000 |
| commit | 3cf29f61eae43e0e5dc1eb70324cb53e6aa9581e (patch) | |
| tree | a19b5f913c8f9e35aac50c49e0cac6b474af3576 | |
| parent | 1b10fb7768fd8d7efc6a77634ede39da712cb789 (diff) | |
| download | emacs-3cf29f61eae43e0e5dc1eb70324cb53e6aa9581e.tar.gz emacs-3cf29f61eae43e0e5dc1eb70324cb53e6aa9581e.zip | |
(Fwrite_region, build_annotations):
Set start and end using XFASTINT.
| -rw-r--r-- | src/fileio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fileio.c b/src/fileio.c index fb4b4221854..143148193a4 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3894,8 +3894,8 @@ to the file, instead of any buffer contents, and END is ignored.") | |||
| 3894 | annotations = build_annotations (start, end, coding.pre_write_conversion); | 3894 | annotations = build_annotations (start, end, coding.pre_write_conversion); |
| 3895 | if (current_buffer != given_buffer) | 3895 | if (current_buffer != given_buffer) |
| 3896 | { | 3896 | { |
| 3897 | start = BEGV; | 3897 | XSETFASTINT (start, BEGV); |
| 3898 | end = ZV; | 3898 | XSETFASTINT (end, ZV); |
| 3899 | } | 3899 | } |
| 3900 | 3900 | ||
| 3901 | #ifdef CLASH_DETECTION | 3901 | #ifdef CLASH_DETECTION |
| @@ -4205,8 +4205,8 @@ build_annotations (start, end, pre_write_conversion) | |||
| 4205 | been dealt with by this function. */ | 4205 | been dealt with by this function. */ |
| 4206 | if (current_buffer != given_buffer) | 4206 | if (current_buffer != given_buffer) |
| 4207 | { | 4207 | { |
| 4208 | start = BEGV; | 4208 | XSETFASTINT (start, BEGV); |
| 4209 | end = ZV; | 4209 | XSETFASTINT (end, ZV); |
| 4210 | annotations = Qnil; | 4210 | annotations = Qnil; |
| 4211 | } | 4211 | } |
| 4212 | Flength (res); /* Check basic validity of return value */ | 4212 | Flength (res); /* Check basic validity of return value */ |
| @@ -4227,8 +4227,8 @@ build_annotations (start, end, pre_write_conversion) | |||
| 4227 | original_buffer); | 4227 | original_buffer); |
| 4228 | if (current_buffer != given_buffer) | 4228 | if (current_buffer != given_buffer) |
| 4229 | { | 4229 | { |
| 4230 | start = BEGV; | 4230 | XSETFASTINT (start, BEGV); |
| 4231 | end = ZV; | 4231 | XSETFASTINT (end, ZV); |
| 4232 | annotations = Qnil; | 4232 | annotations = Qnil; |
| 4233 | } | 4233 | } |
| 4234 | Flength (res); | 4234 | Flength (res); |