Skip to content

Commit 2c08198

Browse files
committed
Removed warnings
1 parent 1f64d94 commit 2c08198

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

BitStore/Controller/AppStart.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ + (void)setupViewController {
119119

120120
+ (void)loadSettings {
121121
Address* address = [AddressHelper instance].defaultAddress;
122-
NSString* url = [NSString stringWithFormat:@"%@?v=%lu&a=%@", [API settingsUrl], [UserDefaults instance].version, address.address];
122+
NSString* url = [NSString stringWithFormat:@"%@?v=%li&a=%@", [API settingsUrl], (long)[UserDefaults instance].version, address.address];
123123
RequestHelper* rh = [[RequestHelper alloc] init];
124124
[rh startRequestWithUrl:url completion:^(BOOL success, NSData* data) {
125125
if (success) {

BitStore/Model/Unit.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ - (id)initWithType:(UnitType)type {
2121

2222
- (id)initWithCoder:(NSCoder *)aDecoder {
2323
if (self = [super init]) {
24-
self.type = [aDecoder decodeIntegerForKey:@"type"];
24+
self.type = (int)[aDecoder decodeIntegerForKey:@"type"];
2525
}
2626
return self;
2727
}

0 commit comments

Comments
 (0)