Skip to content

Commit eefe545

Browse files
committed
Fix typo in CanonicalABI.md
1 parent 5549780 commit eefe545

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

design/mvp/CanonicalABI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ def load(cx, ptr, t):
449449
case Record(fields) : return load_record(cx, ptr, fields)
450450
case Variant(cases) : return load_variant(cx, ptr, cases)
451451
case Flags(labels) : return load_flags(cx, ptr, labels)
452-
case Own() : return lift_own(cx, load_int(cx.opts, ptr, 4), t)
453-
case Borrow() : return lift_borrow(cx, load_int(cx.opts, ptr, 4), t)
452+
case Own() : return lift_own(cx, load_int(cx, ptr, 4), t)
453+
case Borrow() : return lift_borrow(cx, load_int(cx, ptr, 4), t)
454454
```
455455

456456
Integers are loaded directly from memory, with their high-order bit interpreted

design/mvp/canonical-abi/definitions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ def load(cx, ptr, t):
402402
case Record(fields) : return load_record(cx, ptr, fields)
403403
case Variant(cases) : return load_variant(cx, ptr, cases)
404404
case Flags(labels) : return load_flags(cx, ptr, labels)
405-
case Own() : return lift_own(cx, load_int(cx.opts, ptr, 4), t)
406-
case Borrow() : return lift_borrow(cx, load_int(cx.opts, ptr, 4), t)
405+
case Own() : return lift_own(cx, load_int(cx, ptr, 4), t)
406+
case Borrow() : return lift_borrow(cx, load_int(cx, ptr, 4), t)
407407

408408
def load_int(cx, ptr, nbytes, signed = False):
409409
return int.from_bytes(cx.opts.memory[ptr : ptr+nbytes], 'little', signed=signed)

0 commit comments

Comments
 (0)