fix warnings

This commit is contained in:
Sami Samhuri 2014-03-30 22:45:53 -07:00
parent 1cfd5bd45c
commit d3436be10a
2 changed files with 2 additions and 2 deletions

View file

@ -280,7 +280,7 @@ NSString *JoinURLComponents(NSString *first, va_list args)
}
NSUInteger timeout = [[options objectForKey: @"timeout"] unsignedIntValue];
if (timeout == 0) {
[mutableOptions setValue: [NSNumber numberWithUnsignedInt: self.timeout] forKey: @"timeout"];
[mutableOptions setValue: [NSNumber numberWithUnsignedLong: self.timeout] forKey: @"timeout"];
}
options = [NSDictionary dictionaryWithDictionary: mutableOptions];
return [MMHTTPRequest requestWithOptions: options callback: callback];

View file

@ -9,7 +9,7 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef void (^UIAlertViewCallback)(int buttonClicked, BOOL canceled);
typedef void (^UIAlertViewCallback)(long buttonClicked, BOOL canceled);
@interface UIAlertViewDelegate : NSObject <UIAlertViewDelegate>
{