From 5a07e909ff9fdd06d018db491766cb61dfd1326a Mon Sep 17 00:00:00 2001 From: Andrew Bruce Date: Thu, 17 Mar 2016 13:02:41 +0000 Subject: [PATCH] Use int in printf formatting Avoids a warning, and possibly a crash on Travis. --- RMQClient/AMQParser.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RMQClient/AMQParser.m b/RMQClient/AMQParser.m index 414bf16f..4260659a 100644 --- a/RMQClient/AMQParser.m +++ b/RMQClient/AMQParser.m @@ -114,7 +114,8 @@ - (NSString *)parseLongString { return @""; } else { self.cursor += sizeof(length); - NSString *string = [NSString stringWithFormat:@"%.*s", length, self.cursor]; + int readCharsLength = length; + NSString *string = [NSString stringWithFormat:@"%.*s", readCharsLength, self.cursor]; self.cursor += length; return string;