aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorEli Zaretskii2010-09-22 12:03:34 -0400
committerEli Zaretskii2010-09-22 12:03:34 -0400
commit413d18e73de161f0618926ef73d170a7ef5c7a2f (patch)
tree874e4eac4e7b0843c67ad0969d5c945cb8c8639c /src/keyboard.c
parent7390c1cdc8f29150299000e566de15e8e2432efa (diff)
downloademacs-413d18e73de161f0618926ef73d170a7ef5c7a2f.tar.gz
emacs-413d18e73de161f0618926ef73d170a7ef5c7a2f.zip
Fix some uses of int instead of EMACS_INT.
minibuf.c (Fminibuffer_contents) (Fminibuffer_contents_no_properties) (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer positions. keyboard.c (command_loop_1): Use EMACS_INT to compare point with mark. alloc.c (make_uninit_string, make_uninit_multibyte_string) (allocate_string_data): Accept EMACS_INT for string length. editfns.c (Ffield_string, Ffield_string_no_properties) (make_buffer_string, make_buffer_string_both, Fbuffer_substring) (Fbuffer_substring_no_properties, find_field, Fdelete_field) (Ffield_string, Ffield_string_no_properties, Ffield_beginning) (Ffield_end): Use EMACS_INT for buffer positions. insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare point with mark. lisp.h (allocate_string_data, make_uninit_string) (make_uninit_multibyte_string, make_buffer_string) (make_buffer_string_both): Adjust prototypes.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index eed031a3c2e..4785036eda8 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1811,8 +1811,9 @@ command_loop_1 (void)
1811 && !NILP (Vtransient_mark_mode))) 1811 && !NILP (Vtransient_mark_mode)))
1812 && !EQ (Vthis_command, Qhandle_switch_frame)) 1812 && !EQ (Vthis_command, Qhandle_switch_frame))
1813 { 1813 {
1814 int beg = XINT (Fmarker_position (current_buffer->mark)); 1814 EMACS_INT beg =
1815 int end = XINT (make_number (PT)); 1815 XINT (Fmarker_position (current_buffer->mark));
1816 EMACS_INT end = PT;
1816 if (beg < end) 1817 if (beg < end)
1817 call2 (Qx_set_selection, QPRIMARY, 1818 call2 (Qx_set_selection, QPRIMARY,
1818 make_buffer_string (beg, end, 0)); 1819 make_buffer_string (beg, end, 0));