Skip to content

Commit

Permalink
Merge pull request #1 from insanehunter/patch-1
Browse files Browse the repository at this point in the history
Fixed 'implicit conversion changes signedness' warning
  • Loading branch information
rentzsch committed Jan 4, 2013
2 parents b615594 + 58e3b73 commit ea4ad9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JREnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@
BOOL ENUM_TYPENAME##FromString(NSString *enumLabel, ENUM_TYPENAME *enumValue) { \
NSNumber *value = [ENUM_TYPENAME##ByLabel() objectForKey:enumLabel]; \
if (value) { \
*enumValue = [value intValue]; \
*enumValue = (ENUM_TYPENAME)[value intValue]; \
return YES; \
} else { \
return NO; \
} \
}
}

0 comments on commit ea4ad9c

Please sign in to comment.