"union field selector of %s gave a negative value",
type->name);
- xbt_assert3(field_num < xbt_dynar_length(union_data.fields),
+ xbt_assert3(field_num < (int)xbt_dynar_length(union_data.fields),
"union field selector of %s returned %d but there is only %lu fields",
type->name, field_num, xbt_dynar_length(union_data.fields));
"union field selector of %s gave a negative value",
type->name);
- xbt_assert3(field_num < xbt_dynar_length(union_data.fields),
+ xbt_assert3(field_num < (int)xbt_dynar_length(union_data.fields),
"union field selector of %s returned %d but there is only %lu fields",
type->name, field_num, xbt_dynar_length(union_data.fields));
if (field_num < 0)
THROW1(mismatch_error,0,
"Received union field for %s is negative", type->name);
- if (field_num > xbt_dynar_length(union_data.fields))
+ if (field_num > (int)xbt_dynar_length(union_data.fields))
THROW3(mismatch_error,0,
"Received union field for %s is said to be #%d but there is only %lu fields",
type->name, field_num, xbt_dynar_length(union_data.fields));