Skip to content

Commit 37b50c1

Browse files
committed
Fix some flags-to-unsigned-int conversions
1 parent 15b87cd commit 37b50c1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ObjectiveGit/GTCheckoutOptions.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static int GTCheckoutNotifyCallback(git_checkout_notify_t why, const char *path,
7979
}
8080

8181
- (git_checkout_options *)git_checkoutOptions {
82-
_git_checkoutOptions.checkout_strategy = self.strategy;
82+
_git_checkoutOptions.checkout_strategy = (unsigned int)self.strategy;
8383

8484
if (self.progressBlock != nil) {
8585
_git_checkoutOptions.progress_cb = GTCheckoutProgressCallback;
@@ -88,7 +88,7 @@ - (git_checkout_options *)git_checkoutOptions {
8888

8989
if (self.notifyBlock != nil) {
9090
_git_checkoutOptions.notify_cb = GTCheckoutNotifyCallback;
91-
_git_checkoutOptions.notify_flags = self.notifyFlags;
91+
_git_checkoutOptions.notify_flags = (unsigned int)self.notifyFlags;
9292
_git_checkoutOptions.notify_payload = (__bridge void *)self.notifyBlock;
9393
}
9494

ObjectiveGit/GTRepository+Stashing.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ @implementation GTRepository (Stashing)
2121
- (GTCommit *)stashChangesWithMessage:(NSString *)message flags:(GTRepositoryStashFlag)flags error:(NSError * __autoreleasing *)error {
2222
git_oid git_oid;
2323

24-
int gitError = git_stash_save(&git_oid, self.git_repository, [self userSignatureForNow].git_signature, message.UTF8String, flags);
24+
int gitError = git_stash_save(&git_oid, self.git_repository, [self userSignatureForNow].git_signature, message.UTF8String, (unsigned int)flags);
2525
if (gitError != GIT_OK) {
2626
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to stash."];
2727
return nil;

ObjectiveGit/GTRepository.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ - (GTFilterList *)filterListWithPath:(NSString *)path blob:(GTBlob *)blob mode:(
914914
NSParameterAssert(path != nil);
915915

916916
git_filter_list *list = NULL;
917-
int gitError = git_filter_list_load(&list, self.git_repository, blob.git_blob, path.UTF8String, (git_filter_mode_t)mode, options);
917+
int gitError = git_filter_list_load(&list, self.git_repository, blob.git_blob, path.UTF8String, (git_filter_mode_t)mode, (unsigned int)options);
918918
if (gitError != GIT_OK) {
919919
if (success != NULL) *success = NO;
920920
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to load filter list for %@", path];

0 commit comments

Comments
 (0)