Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
iainchen committed Oct 11, 2022
1 parent cfc5d6b commit ddd8b58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MangoFix.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MangoFix"
s.version = "1.5.0"
s.version = "1.5.1"
s.summary = "MangoFix"
s.description = <<-DESC
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.
Expand Down
9 changes: 8 additions & 1 deletion MangoFix/Util/util.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@
#import "runenv.h"



static ffi_type *_ffi_type_with_type_encoding(NSString *typeEncoding){
char *code = (char *)typeEncoding.UTF8String;
switch (code[0]) {
case 'r':
case 'R':
case 'n':
case 'N':
case 'o':
case 'O':
case 'V':
return _ffi_type_with_type_encoding(@(&code[1]));
case 'v':
return &ffi_type_void;
case 'c':
Expand Down

0 comments on commit ddd8b58

Please sign in to comment.