From 25041d46568936775b9fb51d5a24b4e5e3b6549b Mon Sep 17 00:00:00 2001 From: Neo Date: Fri, 7 Oct 2016 18:51:42 +0800 Subject: [PATCH] fix wrong parameter in NSRange bug --- Hashids/Classes/Hashids.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hashids/Classes/Hashids.m b/Hashids/Classes/Hashids.m index 8cd1cde..a9d77a5 100644 --- a/Hashids/Classes/Hashids.m +++ b/Hashids/Classes/Hashids.m @@ -314,7 +314,7 @@ - (NSString *) encodeValues:(NSArray *)values if(excess > 0){ int start_pos = excess / 2; - ret_str = [[ret_str substringWithRange:NSMakeRange(start_pos, start_pos + minHashLength)] mutableCopy]; + ret_str = [[ret_str substringWithRange:NSMakeRange(start_pos, minHashLength)] mutableCopy]; } }