Commit 3cf29f61 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fwrite_region, build_annotations):

Set start and end using XFASTINT.
parent 1b10fb77
...@@ -3894,8 +3894,8 @@ to the file, instead of any buffer contents, and END is ignored.") ...@@ -3894,8 +3894,8 @@ to the file, instead of any buffer contents, and END is ignored.")
annotations = build_annotations (start, end, coding.pre_write_conversion); annotations = build_annotations (start, end, coding.pre_write_conversion);
if (current_buffer != given_buffer) if (current_buffer != given_buffer)
{ {
start = BEGV; XSETFASTINT (start, BEGV);
end = ZV; XSETFASTINT (end, ZV);
} }
#ifdef CLASH_DETECTION #ifdef CLASH_DETECTION
...@@ -4205,8 +4205,8 @@ build_annotations (start, end, pre_write_conversion) ...@@ -4205,8 +4205,8 @@ build_annotations (start, end, pre_write_conversion)
been dealt with by this function. */ been dealt with by this function. */
if (current_buffer != given_buffer) if (current_buffer != given_buffer)
{ {
start = BEGV; XSETFASTINT (start, BEGV);
end = ZV; XSETFASTINT (end, ZV);
annotations = Qnil; annotations = Qnil;
} }
Flength (res); /* Check basic validity of return value */ Flength (res); /* Check basic validity of return value */
...@@ -4227,8 +4227,8 @@ build_annotations (start, end, pre_write_conversion) ...@@ -4227,8 +4227,8 @@ build_annotations (start, end, pre_write_conversion)
original_buffer); original_buffer);
if (current_buffer != given_buffer) if (current_buffer != given_buffer)
{ {
start = BEGV; XSETFASTINT (start, BEGV);
end = ZV; XSETFASTINT (end, ZV);
annotations = Qnil; annotations = Qnil;
} }
Flength (res); Flength (res);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment