mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Fixes 2 kinds of warnings.
1) The last parameter of getGetElementPtr() has type bool. In some instances, a 2 is used as parameter. This is converted to true. 2) Several loops use int instead of unsigned. This causes warning about signed/unsigned mismatch. Curiously, only Visual C++ complains about this. Nevertheless I think that the warnings should be fixed.
This commit is contained in:
@@ -221,7 +221,7 @@ void TemplateInstance::codegen(Ir* p)
|
||||
#endif
|
||||
if (!errors && members)
|
||||
{
|
||||
for (int i = 0; i < members->dim; i++)
|
||||
for (unsigned i = 0; i < members->dim; i++)
|
||||
{
|
||||
Dsymbol *s = (Dsymbol *)members->data[i];
|
||||
s->codegen(p);
|
||||
@@ -235,7 +235,7 @@ void TemplateMixin::codegen(Ir* p)
|
||||
{
|
||||
if (!errors && members)
|
||||
{
|
||||
for (int i = 0; i < members->dim; i++)
|
||||
for (unsigned i = 0; i < members->dim; i++)
|
||||
{
|
||||
Dsymbol *s = (Dsymbol *)members->data[i];
|
||||
if (s->isVarDeclaration())
|
||||
|
||||
Reference in New Issue
Block a user