Skip to content

Commit

Permalink
Pad CallFrame::codesize to word boundary (#584)
Browse files Browse the repository at this point in the history
Introduced here: FuelLabs/fuel-vm#736

### Before requesting review
- [x] I have reviewed the code myself
  • Loading branch information
Dentosal authored May 28, 2024
1 parent 7ed5c58 commit dc3623c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fuel-vm/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ A call frame consists of the following, word-aligned:
| 32 | `byte[32]` | `to` | Contract ID for this call. |
| 32 | `byte[32]` | `asset_id` | asset ID of forwarded coins. |
| 8*64 | `byte[8][64]` | `regs` | Saved registers from previous context. |
| 8 | `uint64` | `codesize` | Code size in bytes. |
| 8 | `uint64` | `codesize` | Code size in bytes, padded to the next word boundary. |
| 8 | `byte[8]` | `param1` | First parameter. |
| 8 | `byte[8]` | `param2` | Second parameter. |
| 1* | `byte[]` | `code` | Zero-padded to 8-byte alignment, but individual instructions are not aligned. |
Expand Down

0 comments on commit dc3623c

Please sign in to comment.