Commit 17fdb222 authored by Paul Eggert's avatar Paul Eggert

* nsselect.m (clean_local_selection_data): Use ptrdiff_t, not int.

parent 88cc3dab
......@@ -528,7 +528,7 @@
Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts.
(ns_update_menubar): Use intptr_t, not EMACS_INT, when intptr_t is
wide enough.
* nsselect.m (ns_get_local_selection):
* nsselect.m (ns_get_local_selection, clean_local_selection_data):
Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts.
* print.c (print_buffer_size, print_buffer_pos, print_buffer_pos_byte)
(PRINTDECLARE, PRINTPREPARE):
......
......@@ -109,8 +109,8 @@ Updated by Christian Limpach (chris@nice.ch)
if (VECTORP (obj))
{
int i;
int size = ASIZE (obj);
ptrdiff_t i;
ptrdiff_t size = ASIZE (obj);
Lisp_Object copy;
if (size == 1)
......@@ -353,7 +353,7 @@ Updated by Christian Limpach (chris@nice.ch)
length = [mstr lengthOfBytesUsingEncoding: NSUTF8StringEncoding];
#if ! defined (NS_IMPL_COCOA) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
if (!utfStr)
if (!utfStr)
{
utfStr = [mstr cString];
length = strlen (utfStr);
......@@ -621,4 +621,3 @@ and the local selection value (whatever was given to `x-own-selection').\n\
Qforeign_selection = intern_c_string ("foreign-selection");
staticpro (&Qforeign_selection);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment