Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #198 pblock & pproperties type erro #241

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions commands/FBClassDump.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def run(self, arguments, options):
struct Block_literal_1 real = *((__bridge struct Block_literal_1 *)$block);
NSMutableDictionary *dict = (id)[NSMutableDictionary dictionary];

[dict setObject:(id)[NSNumber numberWithLong:(long)real.invoke] forKey:@"invoke"];
[dict setValue:(id)[NSNumber numberWithLong:(long)real.invoke] forKey:@"invoke"];

if (real.flags & BLOCK_HAS_SIGNATURE) {
char *signature;
Expand All @@ -131,7 +131,7 @@ def run(self, arguments, options):
[types addObject:(id)[NSString stringWithUTF8String:type]];
}

[dict setObject:types forKey:@"signature"];
[dict setValue:types forKey:@"signature"];
}

RETURN(dict);
Expand Down
3 changes: 2 additions & 1 deletion fblldbbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def evaluateCStringExpression(expression, printErrors=True):
if (!IS_JSON_OBJ(ret)) {\
(void)[NSException raise:@"Invalid RETURN argument" format:@""];\
}\
NSDictionary *__dict = @{@"return":ret};\
NSMutableDictionary *__dict = (id)[NSMutableDictionary dictionary];\
[__dict setValue:(id)ret forKey:@"return"];\
NSData *__data = (id)[NSJSONSerialization dataWithJSONObject:__dict options:0 error:NULL];\
NSString *__str = (id)[[NSString alloc] initWithData:__data encoding:4];\
(char *)[__str UTF8String];})
Expand Down