Fix some more warnings.

Replace format modifier %zu (for size_t) with %llu and a cast to unsigned long long.
This commit is contained in:
kai 2015-02-23 23:12:41 +01:00
parent 2d69424933
commit 136fe8dd03
3 changed files with 8 additions and 6 deletions

View file

@ -284,7 +284,9 @@ LLConstant* DtoConstArrayInitializer(ArrayInitializer* arrinit)
// make sure the number of initializers is sane
if (arrinit->index.dim > arrlen || arrinit->dim > arrlen)
{
error(arrinit->loc, "too many initializers, %u, for array[%zu]", arrinit->index.dim, arrlen);
error(arrinit->loc, "too many initializers, %llu, for array[%llu]",
static_cast<unsigned long long>(arrinit->index.dim),
static_cast<unsigned long long>(arrlen));
fatal();
}
@ -321,7 +323,7 @@ LLConstant* DtoConstArrayInitializer(ArrayInitializer* arrinit)
// error check from dmd
if (initvals[j] != NULL)
{
error(arrinit->loc, "duplicate initialization for index %zu", j);
error(arrinit->loc, "duplicate initialization for index %llu", static_cast<unsigned long long>(j));
}
LLConstant* c = DtoConstInitializer(val->loc, elemty, val);