Skip to content

Conversation

@lightclient
Copy link
Member

@lightclient lightclient commented Dec 16, 2024

This fixes some errors in the system contract comments. The assembled code does not change.

@lightclient lightclient merged commit f1c13e2 into main Dec 16, 2024
1 check passed
Comment on lines +371 to +372
pop ;; [count]
push 0 ;; [reset_excess]
Copy link
Collaborator

@fjl fjl Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks incorrect. The POP instruction does drop excess, and then a zero is pushed to set it to zero. So the comments should be like this:

  ;; Drop excess from the stack and replace it with zero.
  pop                   ;; [count]
  push 0                ;; [excess, count]

Copy link

@Jamstar00 Jamstar00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants