Skip to content

Start indexing from 1 in showArrayImpl#1

Closed
sarahnya wants to merge 1 commit into
purescript-lua:masterfrom
sarahnya:showArrayImpl-fix
Closed

Start indexing from 1 in showArrayImpl#1
sarahnya wants to merge 1 commit into
purescript-lua:masterfrom
sarahnya:showArrayImpl-fix

Conversation

@sarahnya

Copy link
Copy Markdown

Description of the change

Use 1 based indexing in showArrayImpl to match both what is done in other parts of the code and native lua indexing


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@Unisay

Unisay commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Thanks for catching this, @sarahnya — you spotted it first, back in 2024. The exact same fix (xs[i - 1]xs[i] in showArrayImpl) landed on master in bf511cb (PR #5) as part of a batch of Lua 5.1 FFI fixes, so this is now already on master. Closing as superseded — sorry it took so long to get the underlying issue addressed, and thank you for the report.

@Unisay Unisay closed this Jun 14, 2026
@Unisay Unisay self-assigned this Jun 14, 2026
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.

2 participants