Skip to content

Commit

Permalink
fix md5 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
李杰 committed Aug 29, 2017
1 parent dbb702c commit 1f2ee0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JJNetwork/Source/Category/NSString+MD5.m
Expand Up @@ -14,7 +14,7 @@ @implementation NSString (MD5)
- (NSString*)md5{
const char *cStr = [self UTF8String];
unsigned char result[16];
CC_MD5(cStr, strlen(cStr), result); // This is the md5 call
CC_MD5(cStr, (CC_LONG)strlen(cStr), result); // This is the md5 call
return [NSString stringWithFormat:
@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
result[0], result[1], result[2], result[3],
Expand Down

0 comments on commit 1f2ee0c

Please sign in to comment.