Skip to content

Commit ddd8b58

Browse files
author
iainchen
committed
fix bug
1 parent cfc5d6b commit ddd8b58

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

MangoFix.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MangoFix"
3-
s.version = "1.5.0"
3+
s.version = "1.5.1"
44
s.summary = "MangoFix"
55
s.description = <<-DESC
66
Mango is a DSL which syntax is very similar to Objective-C,Mango is also an iOS App hotfix SDK. You can use Mango method replace any Objective-C method.

MangoFix/Util/util.m

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@
1212
#import "runenv.h"
1313

1414

15-
1615
static ffi_type *_ffi_type_with_type_encoding(NSString *typeEncoding){
1716
char *code = (char *)typeEncoding.UTF8String;
1817
switch (code[0]) {
18+
case 'r':
19+
case 'R':
20+
case 'n':
21+
case 'N':
22+
case 'o':
23+
case 'O':
24+
case 'V':
25+
return _ffi_type_with_type_encoding(@(&code[1]));
1926
case 'v':
2027
return &ffi_type_void;
2128
case 'c':

0 commit comments

Comments
 (0)