зеркало из https://github.com/mozilla/gecko-dev.git
Fix comparison between signed and unsigned integer expressions in nsStandaloneNativeMenu.mm. b=562439 r=mstange
This commit is contained in:
Родитель
39c5370501
Коммит
2178eec075
|
@ -140,9 +140,8 @@ NativeMenuItemWithLocation(NSMenu * currentSubmenu, NSString * locationString)
|
|||
return nil;
|
||||
|
||||
for (NSUInteger i = 0; i < indexCount; i++) {
|
||||
NSUInteger targetIndex = [[indexes objectAtIndex:i] intValue];
|
||||
NSInteger targetIndex = [[indexes objectAtIndex:i] integerValue];
|
||||
NSInteger itemCount = [currentSubmenu numberOfItems];
|
||||
|
||||
if (targetIndex < itemCount) {
|
||||
NSMenuItem* menuItem = [currentSubmenu itemAtIndex:targetIndex];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче