Fix Xcode 6 compile warning (confusing signed/unsigned integers)