changeset 91774:47c48e8e3205

(read_key_sequence): Don't pass args with side effects to AREF, it fails when compiling with -DENABLE_CHECKING.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 11 Feb 2008 11:29:41 +0000
parents 5560603238a5
children aab40ecbce33
files src/keyboard.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon Feb 11 11:28:35 2008 +0000
+++ b/src/keyboard.c	Mon Feb 11 11:29:41 2008 +0000
@@ -9590,7 +9590,8 @@
 	    }
 
 	  GROW_RAW_KEYBUF;
-	  ASET (raw_keybuf, raw_keybuf_count++, key);
+	  ASET (raw_keybuf, raw_keybuf_count, key);
+	  raw_keybuf_count++;
 	}
 
       /* Clicks in non-text areas get prefixed by the symbol
@@ -9617,7 +9618,7 @@
 	    {
 	      Lisp_Object window, posn;
 
-	      window = POSN_WINDOW      (EVENT_START (key));
+	      window = POSN_WINDOW (EVENT_START (key));
 	      posn   = POSN_POSN (EVENT_START (key));
 
 	      if (CONSP (posn)