summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDialog.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-14 11:52:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-14 11:52:50 (GMT)
commit7a2d4dc65edbdb62b1c4102d5712a6054e9a5e5a (patch)
tree56a2977daae722b961d75cd80156302caf564f11 /macosx/tkMacOSXDialog.c
parent242588ac05e34fe9e841f5621e042027cda93ab5 (diff)
downloadtk-7a2d4dc65edbdb62b1c4102d5712a6054e9a5e5a.zip
tk-7a2d4dc65edbdb62b1c4102d5712a6054e9a5e5a.tar.gz
tk-7a2d4dc65edbdb62b1c4102d5712a6054e9a5e5a.tar.bz2
Fix a few MacOSX compiler warnings
Diffstat (limited to 'macosx/tkMacOSXDialog.c')
-rw-r--r--macosx/tkMacOSXDialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index 1effe48..97d4018 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -746,7 +746,7 @@ Tk_GetOpenFileObjCmd(
/*
* The -typevariable must be set to the selected file type, if the dialog was not cancelled
*/
- NSInteger selectedFilterIndex = filterInfo.fileTypeIndex;
+ NSUInteger selectedFilterIndex = filterInfo.fileTypeIndex;
NSString *selectedFilter = NULL;
if (filterInfo.userHasSelectedFilter) {
selectedFilterIndex = filterInfo.fileTypeIndex;
@@ -772,7 +772,7 @@ Tk_GetOpenFileObjCmd(
selectedFilter = [filterInfo.fileTypeNames objectAtIndex:selectedFilterIndex];
} else {
// scan the list
- int i;
+ NSUInteger i;
for (i = 0; i < [filterInfo.fileTypeNames count]; i++) {
if (filterCompatible(extension, i)) {
selectedFilterIndex = i;