Skip to content

Conversation

@boriel
Copy link
Collaborator

@boriel boriel commented Mar 14, 2025

Fixes #956

@boriel boriel force-pushed the fix/strange_array_behavior branch from 0d5dcdd to b871b93 Compare March 14, 2025 23:29
boriel added 5 commits March 15, 2025 00:29
LBound PTR MUST always be allocated in the stack.
If it's a zero-based array, it just contains a NULL (0x0000) pointer.

The Array alloc routine will not use the ubound pointer if it's 0.
@boriel boriel force-pushed the fix/strange_array_behavior branch from b871b93 to 3c4af37 Compare March 14, 2025 23:29
@boriel boriel force-pushed the fix/strange_array_behavior branch from 3c4af37 to 98ed764 Compare March 14, 2025 23:38
@boriel boriel merged commit eae716b into main Mar 14, 2025
1 check passed
@boriel boriel deleted the fix/strange_array_behavior branch March 14, 2025 23:44
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.

[Bug]: Wrong array indexing

2 participants