mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 20:06:03 +03:00
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:
parent
2d69424933
commit
136fe8dd03
3 changed files with 8 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue