Skip to content

Commit

Permalink
XS: fxStringAccessorGetter uses scratch then promotes primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Soquet committed May 15, 2020
1 parent 47a730e commit 402cd74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xs/sources/xsString.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ txSlot* fxNewStringInstance(txMachine* the)

void fxStringAccessorGetter(txMachine* the)
{
txSlot* instance = fxToInstance(the, mxThis);
txSlot* string;
txID id = the->scratch.value.at.id;
txIndex index = the->scratch.value.at.index;
txSlot* instance = fxToInstance(the, mxThis);
while (instance) {
if (instance->flag & XS_EXOTIC_FLAG) {
string = instance->next;
Expand Down

0 comments on commit 402cd74

Please sign in to comment.