Skip to content

Commit 2ed0693

Browse files
committed
fix ordering of types
1 parent 310b51c commit 2ed0693

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compiler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6196,9 +6196,9 @@ export class Compiler extends DiagnosticEmitter {
61966196
if (flow.isAnyLocalFlag(localIndex, LocalFlags.ANY_RETAINED)) {
61976197
valueExpr = this.makeReplace(
61986198
valueExpr,
6199-
type,
6200-
module.local_get(localIndex, type.toNativeType()),
62016199
valueType,
6200+
module.local_get(localIndex, type.toNativeType()),
6201+
type,
62026202
alreadyRetained
62036203
);
62046204
if (tee) { // local = REPLACE(local, value)
@@ -6256,9 +6256,9 @@ export class Compiler extends DiagnosticEmitter {
62566256
valueExpr = module.global_set(global.internalName,
62576257
this.makeReplace(
62586258
valueExpr,
6259-
type,
6260-
module.global_get(global.internalName, nativeType),
62616259
valueType,
6260+
module.global_get(global.internalName, nativeType),
6261+
type,
62626262
alreadyRetained
62636263
)
62646264
);

0 commit comments

Comments
 (0)