Skip to content

Commit a138a46

Browse files
author
Nat!
committed
less _WIN64 warnings
1 parent 29ff717 commit a138a46

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/mulle-objc-signature.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ char *_mulle_objc_signature_supply_typeinfo( char *types,
737737
supplier->index == 2
738738
? alignof( long double)
739739
: info->bits_struct_alignment / 8);
740-
supplier->invocation_offset = info->invocation_offset + info->natural_size;
740+
supplier->invocation_offset = (int32_t) (info->invocation_offset + info->natural_size);
741741
}
742742
else
743743
supplier->invocation_offset = -1; // invalidate
@@ -897,7 +897,7 @@ char *mulle_objc_signature_supply_size_and_alignment( char *types,
897897

898898
next = _mulle_objc_signature_supply_typeinfo( types, NULL, &info);
899899
if( size)
900-
*size = info.bits_size >> 3;
900+
*size = (unsigned int) (info.bits_size >> 3);
901901
if( alignment)
902902
*alignment = info.natural_alignment;
903903

@@ -1209,8 +1209,8 @@ int _mulle_objc_typeinfo_is_compatible( struct mulle_objc_typeinfo *a,
12091209
size_t a_len;
12101210
size_t b_len;
12111211

1212-
a_len = a->pure_type_end - a->type;
1213-
b_len = b->pure_type_end - b->type;
1212+
a_len = (size_t) (a->pure_type_end - a->type);
1213+
b_len = (size_t) (b->pure_type_end - b->type);
12141214

12151215
return( types_are_compatible( a->type, a_len, b->type, b_len));
12161216
}

src/mulle-objc-symbolizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ struct mmc *
223223
mulle_objc_implementation_t imp;
224224
mulle_objc_implementation_t nextimp;
225225

226-
n = array->_count;
226+
n = (int) array->_count;
227227
first = 0;
228228
last = (int) (n - 1);
229229
middle = (first + last) / 2;

0 commit comments

Comments
 (0)