-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1211,6 +1211,7 @@ block: context [ | |
f [red-function!] | ||
all? [logic!] | ||
num [integer!] | ||
cnt [integer!] | ||
blk1 [red-block!] | ||
blk2 [red-block!] | ||
v1 [red-value!] | ||
|
@@ -1250,7 +1251,9 @@ block: context [ | |
s2/tail: value2 + num | ||
] | ||
|
||
_function/call f global-ctx as red-value! words/_compare-cb CB_SORT ;FIXME: hardcoded origin context | ||
cnt: _function/count-locals f/spec 0 no | ||
if positive? cnt [_function/init-locals cnt] | ||
_function/call f f/ctx as red-value! words/_compare-cb CB_SORT | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dockimbel
Member
|
||
stack/unwind | ||
stack/pop 1 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1333,6 +1333,7 @@ string: context [ | |
f [red-function!] | ||
all? [logic!] | ||
num [integer!] | ||
cnt [integer!] | ||
str1 [red-string!] | ||
str2 [red-string!] | ||
v1 [red-value!] | ||
|
@@ -1373,7 +1374,9 @@ string: context [ | |
s2/tail: as red-value! (value2 + (num << (log-b unit))) | ||
] | ||
|
||
_function/call f global-ctx as red-value! words/_compare-cb CB_SORT ;FIXME: hardcoded origin context | ||
cnt: _function/count-locals f/spec 0 no | ||
if positive? cnt [_function/init-locals cnt] | ||
_function/call f f/ctx as red-value! words/_compare-cb CB_SORT | ||
This comment has been minimized.
Sorry, something went wrong.
dockimbel
Member
|
||
stack/unwind | ||
stack/pop 1 | ||
|
||
|
The
f/ctx
context is wrong, it's not the function's context that needs to be passed there, but either global context or a container object context.