diff -r 7dc8f0075d60 Modules/_ctypes/libffi/src/x86/ffi64.c --- a/Modules/_ctypes/libffi/src/x86/ffi64.c Tue Apr 14 11:13:14 2015 -0700 +++ b/Modules/_ctypes/libffi/src/x86/ffi64.c Tue Apr 14 15:04:16 2015 -0400 @@ -214,7 +214,7 @@ const size_t UNITS_PER_WORD = 8; size_t words = (type->size + UNITS_PER_WORD - 1) / UNITS_PER_WORD; ffi_type **ptr; - int i; + unsigned int i; enum x86_64_reg_class subclasses[MAX_CLASSES]; /* If the struct is larger than 32 bytes, pass it on the stack. */ @@ -313,7 +313,7 @@ _Bool in_return, int *pngpr, int *pnsse) { size_t n; - int i, ngpr, nsse; + unsigned int i, ngpr, nsse; n = classify_argument (type, classes, 0); if (n == 0) @@ -479,7 +479,7 @@ { /* The argument is passed entirely in registers. */ char *a = (char *) avalue[i]; - int j; + unsigned int j; for (j = 0; j < n; j++, a += 8, size -= 8) { @@ -653,7 +653,7 @@ else { char *a = alloca (16); - int j; + unsigned int j; avalue[i] = a; for (j = 0; j < n; j++, a += 8)