]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fwrite_region, build_annotations):
authorRichard M. Stallman <rms@gnu.org>
Mon, 2 Jun 1997 00:32:20 +0000 (00:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 2 Jun 1997 00:32:20 +0000 (00:32 +0000)
Set start and end using XFASTINT.

src/fileio.c

index fb4b422185424eaecc9c26717251092654d7ea13..143148193a4fb4b291423b5019c688fcb404cf39 100644 (file)
@@ -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);
   if (current_buffer != given_buffer)
     {
-      start = BEGV;
-      end = ZV;
+      XSETFASTINT (start, BEGV);
+      XSETFASTINT (end, ZV);
     }
 
 #ifdef CLASH_DETECTION
@@ -4205,8 +4205,8 @@ build_annotations (start, end, pre_write_conversion)
         been dealt with by this function.  */
       if (current_buffer != given_buffer)
        {
-         start = BEGV;
-         end = ZV;
+         XSETFASTINT (start, BEGV);
+         XSETFASTINT (end, ZV);
          annotations = Qnil;
        }
       Flength (res);   /* Check basic validity of return value */
@@ -4227,8 +4227,8 @@ build_annotations (start, end, pre_write_conversion)
                   original_buffer);
       if (current_buffer != given_buffer)
        {
-         start = BEGV;
-         end = ZV;
+         XSETFASTINT (start, BEGV);
+         XSETFASTINT (end, ZV);
          annotations = Qnil;
        }
       Flength (res);