ldc-developers/ldc — pull request #30 by redstar (2011-11-24 06:54:13+00:00)
Title: Fix some warnings arising in some compilers

This pull request fixes 2 issues:

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. Therefore I replaced int with unsigned. (I love the auto type of D :-))

Curiously, only Visual C++ complains about this. (I tried ggc and the static analyzer from clang.) Nevertheless I think that the warnings should be fixed - it looks much cleaner for me.