Skip to content

Commit

Permalink
fix broken build with old compilers, NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilledheart committed Mar 19, 2015
1 parent a3e2a59 commit 61344ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/utils-mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,16 @@ void get_current_osx_version(unsigned *major, unsigned *minor, unsigned *patch)
*patch = 0;
return;
}
NSArray *versionArray = [array[1] componentsSeparatedByString:@"."];
NSArray *versionArray = [[array objectAtIndex:1] componentsSeparatedByString:@"."];
if (versionArray.count < 3) {
*major = 10;
*minor = 7;
*patch = 0;
return;
}
*major = [versionArray[0] intValue];
*minor = [versionArray[1] intValue];
*patch = [versionArray[2] intValue];
*major = [[versionArray objectAtIndex:0] intValue];
*minor = [[versionArray objectAtIndex:1] intValue];
*patch = [[versionArray objectAtIndex:2] intValue];
#endif
}

Expand Down

0 comments on commit 61344ec

Please sign in to comment.