Darwin: Misc size_t warnings

This commit is contained in:
Zachary Waldowski
2013-11-30 03:03:00 -05:00
parent 6a6247d179
commit 0612081e6c
2 changed files with 2 additions and 2 deletions

View File

@@ -264,7 +264,7 @@ static int
open_temp_exec_file_dir (const char *dir) open_temp_exec_file_dir (const char *dir)
{ {
static const char suffix[] = "/ffiXXXXXX"; static const char suffix[] = "/ffiXXXXXX";
int lendir = strlen (dir); size_t lendir = strlen (dir);
char *tempname = __builtin_alloca (lendir + sizeof (suffix)); char *tempname = __builtin_alloca (lendir + sizeof (suffix));
if (!tempname) if (!tempname)

View File

@@ -187,7 +187,7 @@ ffi_status FFI_HIDDEN ffi_prep_cif_core(ffi_cif *cif, ffi_abi abi,
{ {
/* Add any padding if necessary */ /* Add any padding if necessary */
if (((*ptr)->alignment - 1) & bytes) if (((*ptr)->alignment - 1) & bytes)
bytes = ALIGN(bytes, (*ptr)->alignment); bytes = (unsigned)ALIGN(bytes, (*ptr)->alignment);
#ifdef TILE #ifdef TILE
if (bytes < 10 * FFI_SIZEOF_ARG && if (bytes < 10 * FFI_SIZEOF_ARG &&