Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
d2f346cc
Commit
d2f346cc
authored
Nov 09, 2023
by
Evan W. Patton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash of static field reuse in tests
Change-Id: I3590ed72a5ea0af41cf575b8237f66489de047b9
parent
6bc7b61d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
appinventor/schemekit/src/yail.m
appinventor/schemekit/src/yail.m
+6
-1
No files found.
appinventor/schemekit/src/yail.m
View file @
d2f346cc
...
@@ -747,6 +747,11 @@ yail_invoke(pic_state *pic) {
...
@@ -747,6 +747,11 @@ yail_invoke(pic_state *pic) {
NSMutableArray
*
argTypes
=
[
NSMutableArray
arrayWithCapacity
:
argc
];
NSMutableArray
*
argTypes
=
[
NSMutableArray
arrayWithCapacity
:
argc
];
SCMMethod
*
method
=
nil
;
SCMMethod
*
method
=
nil
;
if
(
pic_sym_p
(
pic
,
native_object
))
{
// Convert the symbol to the class/protocol/instance it names
yail_resolve_native_symbol
(
pic
,
native_object
);
native_object
=
pic_weak_ref
(
pic
,
pic
->
globals
,
native_object
);
}
int
isStatic
=
yail_native_class_p
(
pic
,
native_object
)
?
1
:
0
;
int
isStatic
=
yail_native_class_p
(
pic
,
native_object
)
?
1
:
0
;
if
(
yail_native_method_p
(
pic
,
native_method
))
{
if
(
yail_native_method_p
(
pic
,
native_method
))
{
method
=
yail_native_method_ptr
(
pic
,
native_method
)
->
method_
;
method
=
yail_native_method_ptr
(
pic
,
native_method
)
->
method_
;
...
@@ -1471,7 +1476,7 @@ yail_static_field(pic_state *pic) {
...
@@ -1471,7 +1476,7 @@ yail_static_field(pic_state *pic) {
NSInvocation
*
invocation
=
[
method
staticInvocation
];
NSInvocation
*
invocation
=
[
method
staticInvocation
];
[
invocation
invoke
];
[
invocation
invoke
];
id
result
=
nil
;
__unsafe_unretained
id
result
=
nil
;
[
invocation
getReturnValue
:
&
result
];
[
invocation
getReturnValue
:
&
result
];
return
yail_make_native_instance
(
pic
,
result
);
return
yail_make_native_instance
(
pic
,
result
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment