aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert <[email protected]>2011-06-13 22:51:17 -0700
committerPaul Eggert <[email protected]>2011-06-13 22:51:17 -0700
commita1759b76246a21c7c07dc2ee00b8db792715104c (patch)
treea9960c85be2ce9a3f1686fc5ddd78b8edccb240a
parentd96be9fc873bfb4ff7d144c95c577537038e5e26 (diff)
* callint.c (Fcall_interactively): Don't use index var as event count.
-rw-r--r--src/ChangeLog2
-rw-r--r--src/callint.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3d137a16a4..e4e95ba5aa 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
2011-06-14 Paul Eggert <[email protected]>
+ * callint.c (Fcall_interactively): Don't use index var as event count.
+
* vm-limit.c (check_memory_limits): Fix incorrect extern function decls.
* mem-limits.h (SIZE): Remove; no longer used.
diff --git a/src/callint.c b/src/callint.c
index 2cc3a7cb53..29bb7ccc40 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -339,7 +339,7 @@ invoke it. If KEYS is omitted or nil, the return value of
{
Lisp_Object input;
Lisp_Object funval = Findirect_function (function, Qt);
- i = num_input_events;
+ size_t events = num_input_events;
input = specs;
/* Compute the arg values using the user's expression. */
GCPRO2 (input, filter_specs);
@@ -347,7 +347,7 @@ invoke it. If KEYS is omitted or nil, the return value of
CONSP (funval) && EQ (Qclosure, XCAR (funval))
? Qt : Qnil);
UNGCPRO;
- if (i != num_input_events || !NILP (record_flag))
+ if (events != num_input_events || !NILP (record_flag))
{
/* We should record this command on the command history. */
Lisp_Object values;