summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXKeyEvent.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-02-12 12:51:10 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-02-12 12:51:10 (GMT)
commit6dbbfe9f269314838207f70fd26de9a7d5394039 (patch)
tree587344f98f1985de320c58734134f3eee93b87f8 /macosx/tkMacOSXKeyEvent.c
parent7d13b808151fa7b1fff9754f24f5f32739f5950b (diff)
downloadtk-6dbbfe9f269314838207f70fd26de9a7d5394039.zip
tk-6dbbfe9f269314838207f70fd26de9a7d5394039.tar.gz
tk-6dbbfe9f269314838207f70fd26de9a7d5394039.tar.bz2
Silence some compiler warnings
Diffstat (limited to 'macosx/tkMacOSXKeyEvent.c')
-rw-r--r--macosx/tkMacOSXKeyEvent.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/macosx/tkMacOSXKeyEvent.c b/macosx/tkMacOSXKeyEvent.c
index 0cfb663..c9ad9f1 100644
--- a/macosx/tkMacOSXKeyEvent.c
+++ b/macosx/tkMacOSXKeyEvent.c
@@ -272,8 +272,9 @@ static unsigned isFunctionKey(unsigned int code);
NSString *str = [aString respondsToSelector: @selector (string)] ?
[aString string] : aString;
if (NS_KEYLOG)
- NSLog (@"setMarkedText '%@' len =%d range %d from %d", str, [str length],
- selRange.length, selRange.location);
+ NSLog (@"setMarkedText '%@' len =%lu range %lu from %lu", str,
+ (unsigned long) [str length], (unsigned long) selRange.length,
+ (unsigned long) selRange.location);
if (privateWorkingText != nil)
[self deleteWorkingText];
@@ -293,7 +294,8 @@ static unsigned isFunctionKey(unsigned int code);
if (privateWorkingText == nil)
return;
if (NS_KEYLOG)
- NSLog(@"deleteWorkingText len = %d\n", [privateWorkingText length]);
+ NSLog(@"deleteWorkingText len = %lu\n",
+ (unsigned long)[privateWorkingText length]);
[privateWorkingText release];
privateWorkingText = nil;
processingCompose = NO;