summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r--macosx/tkMacOSXMenu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 1d3bd34..f36da42 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -791,7 +791,6 @@ TkpPostMenu(
NSView *view = [win contentView];
NSMenu *menu = (NSMenu *) menuPtr->platformData;
NSMenuItem *item = nil;
- NSInteger index = index;
NSPoint location = NSMakePoint(x, tkMacOSXZeroScreenHeight - y);
int result, oldMode;
@@ -805,7 +804,7 @@ TkpPostMenu(
index = [menu numberOfItems] - 1;
}
if (index >= 0) {
- item = [menu itemAtIndex:index];
+ item = [menu itemAtIndex:(NSInteger)index];
}
oldMode = Tcl_SetServiceMode(TCL_SERVICE_NONE);
[menu popUpMenuPositioningItem:item