changeset 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 d9d916379aff
children 300c16876a2f
files src/ChangeLog src/cmds.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Nov 11 16:06:15 2010 -0500
+++ b/src/ChangeLog	Thu Nov 11 16:11:17 2010 -0500
@@ -1,3 +1,8 @@
+2010-11-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* cmds.c (Fself_insert_command): Don't call XFASTINT without checking
+	it's not negative.
+
 2010-11-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
 	* font.c (font_filter_properties): Add const to array elements of
--- 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;