Skip to content

Conversation

@boriel
Copy link
Collaborator

@boriel boriel commented Nov 12, 2024

What / Why

Fixes #824

@boriel boriel force-pushed the fix/array_access_in_function branch from 1a9eeb4 to c7667c0 Compare November 12, 2024 09:38
This required a revamp of the way the arrays were used.
The array.asm runtime now uses the LBOUND table *always*
unless the array is zero-based in all dimensions.

On each iteration, the index is subtracted the i-th lower-bound.
There is no longer the need to subtract it when pushing it.
@boriel boriel force-pushed the fix/array_access_in_function branch 2 times, most recently from f43b7a0 to d681285 Compare November 12, 2024 18:40
@boriel boriel force-pushed the fix/array_access_in_function branch from d681285 to 1633ffc Compare November 12, 2024 19:01
@boriel boriel merged commit e2c1c12 into main Nov 13, 2024
@boriel boriel deleted the fix/array_access_in_function branch November 13, 2024 08:53
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.

Incorrect array indexing when passed as parameter

2 participants