summaryrefslogtreecommitdiff
path: root/src/w32inevt.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-10-18 20:00:00 +0200
committerEli Zaretskii <eliz@gnu.org>2012-10-18 20:00:00 +0200
commitd884121be07ea5e47ad7c763d5370a6def7f9bd8 (patch)
tree468b554a7be285a6ea4185569e8f00a4d7d5bf5f /src/w32inevt.c
parent0b86d359eb52cef840345f7fd09b5f4342aede03 (diff)
Tested and fixed conversion of a descriptor (pointer) to event code.
Diffstat (limited to 'src/w32inevt.c')
-rw-r--r--src/w32inevt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32inevt.c b/src/w32inevt.c
index 06629d37cf..2cbf31efda 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -624,7 +624,7 @@ handle_file_notifications (struct input_event *hold_quit)
Lisp_Object action = lispy_file_action (fni->Action);
inev.kind = FILE_NOTIFY_EVENT;
- inev.code = (ptrdiff_t)notifications_desc;
+ inev.code = (ptrdiff_t)XINT (XIL ((EMACS_INT)notifications_desc));
inev.timestamp = GetTickCount ();
inev.modifiers = 0;
inev.frame_or_window = callback;