Darwin: Misc size_t warnings
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user