Mac OS X gcc warns about a signed/unsigned comparison here. Explicit cast.