Skip to content
Snippets Groups Projects
Commit 021a366c authored by George Nachman's avatar George Nachman
Browse files

Use older syntax for array derference

parent ba8cc34c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1387,7 +1387,7 @@ static void RollInHotkeyTerm(PseudoTerminal* term)
return NO;
}
if (major) {
*major = [parts[0] intValue];
*major = [[parts objectAtIndex:0] intValue];
if (*major < 10) {
return NO;
}
Loading
Loading
@@ -1395,13 +1395,13 @@ static void RollInHotkeyTerm(PseudoTerminal* term)
if (minor) {
*minor = 0;
if (parts.count > 1) {
*minor = [parts[1] intValue];
*minor = [[parts objectAtIndex:1] intValue];
}
}
if (bugFix) {
*bugFix = 0;
if (parts.count > 2) {
*bugFix = [parts[2] intValue];
*bugFix = [[parts objectAtIndex:2] intValue];
}
}
return YES;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment