diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-02 09:39:41 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-10-02 10:00:21 +0300 |
commit | b7d7e3d7d6bb005701f6659802aa38a0e78c01ad (patch) | |
tree | d1008fdb3f6b9d6ed4d71192c6cbb68f81cb7f14 /ios | |
parent | a59504bfb06d57ddb0e1f4cfc02222022fa68da1 (diff) |
WaE: NSLog format errors when compiling as 64-bit code
Use long format modifiers and insert casts to make the code happy both
as 32- and 64-bit.
(Sure, this is just in temporary debugging output NSLog() calls.)
Change-Id: I7c05c59a76e683b3401974c2b468d1aee2de4098
Diffstat (limited to 'ios')
-rw-r--r-- | ios/experimental/LibreOffice/LibreOffice/AppDelegate.m | 6 | ||||
-rw-r--r-- | ios/experimental/LibreOffice/LibreOffice/View.m | 2 | ||||
-rw-r--r-- | ios/experimental/LibreOffice/LibreOffice/ViewController.m | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m b/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m index dd5ac41faea1..b0857ce5b6fd 100644 --- a/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m +++ b/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m @@ -64,7 +64,7 @@ static View *theView; [self.window addGestureRecognizer: tapRecognizer]; [self.window addGestureRecognizer: panRecognizer]; - NSLog(@"statusBarOrientation: %d", [[UIApplication sharedApplication] statusBarOrientation]); + NSLog(@"statusBarOrientation: %ld", (long) [[UIApplication sharedApplication] statusBarOrientation]); if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) lo_set_view_size(applicationFrame.size.height, applicationFrame.size.width); @@ -94,7 +94,7 @@ static View *theView; - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text { - NSLog(@"textView: %@ shouldChangeTextInRange:[%u,%u] replacementText:%@", textView, range.location, range.length, text); + NSLog(@"textView: %@ shouldChangeTextInRange:[%lu,%lu] replacementText:%@", textView, (unsigned long) range.location, (unsigned long) range.length, text); assert(textView == theView->textView); for (NSUInteger i = 0; i < [text length]; i++) @@ -137,7 +137,7 @@ static View *theView; NSLog(@"New applicationFrame: %dx%d@(%d,%d)", (int) applicationFrame.size.width, (int) applicationFrame.size.height, (int) applicationFrame.origin.x, (int) applicationFrame.origin.y); - NSLog(@"statusBarOrientation: %d", [[UIApplication sharedApplication] statusBarOrientation]); + NSLog(@"statusBarOrientation: %ld", (long) [[UIApplication sharedApplication] statusBarOrientation]); if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) lo_set_view_size(applicationFrame.size.height, applicationFrame.size.width); diff --git a/ios/experimental/LibreOffice/LibreOffice/View.m b/ios/experimental/LibreOffice/LibreOffice/View.m index ed1abc695258..8c490cb88cec 100644 --- a/ios/experimental/LibreOffice/LibreOffice/View.m +++ b/ios/experimental/LibreOffice/LibreOffice/View.m @@ -15,7 +15,7 @@ - (void)drawRect:(CGRect)rect { NSLog(@"drawRect: %dx%d@(%d,%d)", (int) rect.size.width, (int) rect.size.height, (int) rect.origin.x, (int) rect.origin.y); - NSLog(@"statusBarOrientation: %d", [[UIApplication sharedApplication] statusBarOrientation]); + NSLog(@"statusBarOrientation: %ld", (long)[[UIApplication sharedApplication] statusBarOrientation]); // NSDate *startDate = [NSDate date]; diff --git a/ios/experimental/LibreOffice/LibreOffice/ViewController.m b/ios/experimental/LibreOffice/LibreOffice/ViewController.m index a0c4985c2c77..a7977af92d5a 100644 --- a/ios/experimental/LibreOffice/LibreOffice/ViewController.m +++ b/ios/experimental/LibreOffice/LibreOffice/ViewController.m @@ -29,7 +29,7 @@ { (void) fromInterfaceOrientation; - NSLog(@"didRotateFromInterfaceOrientation: statusBarOrientation: %d interfaceOrientation: %d", [[UIApplication sharedApplication] statusBarOrientation], [self interfaceOrientation]); + NSLog(@"didRotateFromInterfaceOrientation: statusBarOrientation: %ld interfaceOrientation: %ld", (long) [[UIApplication sharedApplication] statusBarOrientation], (long) [self interfaceOrientation]); } @end |