]> code.delx.au - gnu-emacs/commitdiff
* nsselect.m (clean_local_selection_data): Use ptrdiff_t, not int.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Sep 2011 16:02:05 +0000 (09:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Sep 2011 16:02:05 +0000 (09:02 -0700)
src/ChangeLog
src/nsselect.m

index 52514d36429d2633a0e8f6932b760c7ee75ef229..99d645c0568fcfb613b2823f00b8ec192ce2bc7b 100644 (file)
        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):
index 655fedc640cc3cc22704ebd1778e26ee65324013..9f6f35968f58d29eefbf6859e65e883da102e67c 100644 (file)
@@ -109,8 +109,8 @@ clean_local_selection_data (Lisp_Object obj)
 
   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 @@ ns_string_from_pasteboard (id pb)
       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 @@ The functions are called with one argument, the selection type\n\
   Qforeign_selection = intern_c_string ("foreign-selection");
   staticpro (&Qforeign_selection);
 }
-