Skip to content

Commit 0f476d9

Browse files
committed
Fix typo in CABI code
1 parent 2a3a6dd commit 0f476d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

design/mvp/CanonicalABI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ arbitrarily interleave.)
506506
def trap_if_on_the_stack(self, inst):
507507
c = self.caller
508508
while c is not None:
509-
trap_if(c.inst is int)
509+
trap_if(c.inst is inst)
510510
c = c.caller
511511
```
512512
By analyzing a linked component DAG, an optimized implementation can avoid the

design/mvp/canonical-abi/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ async def enter(self):
417417
def trap_if_on_the_stack(self, inst):
418418
c = self.caller
419419
while c is not None:
420-
trap_if(c.inst is int)
420+
trap_if(c.inst is inst)
421421
c = c.caller
422422

423423
def create_borrow(self):

0 commit comments

Comments
 (0)