From 0659e02d554e1ad1a3d56b4da3a4879f6dcd661f Mon Sep 17 00:00:00 2001 From: Stephan Diederich Date: Mon, 18 Jun 2012 15:11:56 -0700 Subject: [PATCH] fix format specifier LLVM 4.0 grumbles about it, and actually it's right ;) --- Classes/PSWebTableViewCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PSWebTableViewCell.m b/Classes/PSWebTableViewCell.m index 98f730f25e..4e4515a737 100644 --- a/Classes/PSWebTableViewCell.m +++ b/Classes/PSWebTableViewCell.m @@ -82,7 +82,7 @@ body { font: 13px 'Helvetica Neue', Helvetica; word-wrap:break-word; padding:8px else webView_.frame = webViewRect; - NSString *deviceWidth = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ? [NSString stringWithFormat:@"%d", CGRectGetWidth(self.bounds)] : @"device-width"; + NSString *deviceWidth = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ? [NSString stringWithFormat:@"%.0f", CGRectGetWidth(self.bounds)] : @"device-width"; //BWHockeyLog(@"%@\n%@\%@", PSWebTableViewCellHtmlTemplate, deviceWidth, self.webViewContent); NSString *contentHtml = [NSString stringWithFormat:PSWebTableViewCellHtmlTemplate, deviceWidth, self.webViewContent]; [webView_ loadHTMLString:contentHtml baseURL:nil];