comparison src/insdel.c @ 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 e6cb99e4370c
children 607074ed1c6d
comparison
equal deleted inserted replaced
9684:c12e33cc5e0a 9685:ee2c6124ae92
483 record_insert (PT, length); 483 record_insert (PT, length);
484 MODIFF++; 484 MODIFF++;
485 485
486 if (pos < BUF_GPT (buf)) 486 if (pos < BUF_GPT (buf))
487 { 487 {
488 chunk = min (length, BUF_GPT (buf) - pos); 488 chunk = BUF_GPT (buf) - pos;
489 if (chunk > length)
490 chunk = length;
489 bcopy (BUF_CHAR_ADDRESS (buf, pos), GPT_ADDR, chunk); 491 bcopy (BUF_CHAR_ADDRESS (buf, pos), GPT_ADDR, chunk);
490 } 492 }
491 else 493 else
492 chunk = 0; 494 chunk = 0;
493 if (chunk < length) 495 if (chunk < length)