diff src/cmds.c @ 111499:60e30155ac96

* src/cmds.c (Fself_insert_command): Don't call XFASTINT without checking it's not negative.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 11 Nov 2010 16:11:17 -0500
parents 692eb4db341f
children 417b1e4d63cd
line wrap: on
line diff
--- a/src/cmds.c	Thu Nov 11 16:06:15 2010 -0500
+++ b/src/cmds.c	Thu Nov 11 16:11:17 2010 -0500
@@ -276,7 +276,7 @@
   (Lisp_Object n)
 {
   int remove_boundary = 1;
-  CHECK_NUMBER (n);
+  CHECK_NATNUM (n);
 
   if (!EQ (Vthis_command, current_kboard->Vlast_command))
     nonundocount = 0;