Compiled with Xcode 6.1 uses NSInteger and ABS() macro, safer now (no warnings).