mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 17:13:20 +01:00
Cleanup: Avoid signed/unsigned comparisons.
The ones ones left are for DMD-defined constants.
This commit is contained in:
@@ -565,7 +565,7 @@ static void set_param_attrs(TypeFunction* f, llvm::Function* func, FuncDeclarati
|
||||
}
|
||||
|
||||
// build rest of attrs list
|
||||
for (int i = 0; i < n; i++)
|
||||
for (size_t i = 0; i < n; i++)
|
||||
{
|
||||
if (HAS_ATTRIBUTES(attrptr[i]))
|
||||
{
|
||||
@@ -789,7 +789,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
|
||||
++iarg;
|
||||
}
|
||||
|
||||
int k = 0;
|
||||
unsigned int k = 0;
|
||||
|
||||
for (; iarg != func->arg_end(); ++iarg)
|
||||
{
|
||||
@@ -940,7 +940,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
||||
{
|
||||
size_t n = f->fty.args.size();
|
||||
assert(n == fd->parameters->dim);
|
||||
for (int i=0; i < n; ++i)
|
||||
for (size_t i=0; i < n; ++i)
|
||||
{
|
||||
Dsymbol* argsym = static_cast<Dsymbol*>(fd->parameters->data[i]);
|
||||
VarDeclaration* vd = argsym->isVarDeclaration();
|
||||
|
||||
Reference in New Issue
Block a user