[Lldb-commits] [PATCH] suppress compiler warning (mostly -Wsign-compare)

Chilledheart rwindz0 at gmail.com
Fri Nov 14 16:44:00 PST 2014


It is a choice based on some reasons:
1. i is going to negative here where the loop stops. So i must be signed
type.
2. i should be large enough to hold a unsigned size_t. If type int is
sufficient in the previous case, type long is larger.
3.As I know, size_t is unsigned long under OS X.

http://reviews.llvm.org/D6271






More information about the lldb-commits mailing list