changeset 9685:ee2c6124ae92

(insert_from_buffer_1): Don't use min.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 Oct 1994 07:53:05 +0000
parents c12e33cc5e0a
children cd788aa8cb2a
files src/insdel.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Tue Oct 25 06:10:26 1994 +0000
+++ b/src/insdel.c	Tue Oct 25 07:53:05 1994 +0000
@@ -485,7 +485,9 @@
 
   if (pos < BUF_GPT (buf))
     {
-      chunk = min (length, BUF_GPT (buf) - pos);
+      chunk = BUF_GPT (buf) - pos;
+      if (chunk > length)
+	chunk = length;
       bcopy (BUF_CHAR_ADDRESS (buf, pos), GPT_ADDR, chunk);
     }
   else