Skip to content

Fix cpp.Pointer.ofArray with empty arrays - #1262

Merged
Aidan63 merged 2 commits into
HaxeFoundation:masterfrom
tobil4sk:fix/cpp.Pointer.ofArray-empty
Jun 19, 2026
Merged

Fix cpp.Pointer.ofArray with empty arrays#1262
Aidan63 merged 2 commits into
HaxeFoundation:masterfrom
tobil4sk:fix/cpp.Pointer.ofArray-empty

Conversation

@tobil4sk

Copy link
Copy Markdown
Member

array[0] had a side effect of extending an empty array to size 1. Now,
the pointer is retrieved directly without the [] access which prevents
the array being extended.

Fixes #1028.

@tobil4sk
tobil4sk force-pushed the fix/cpp.Pointer.ofArray-empty branch from 7169f46 to 773d932 Compare November 26, 2025 10:59
array[0] had a side effect of extending an empty array to size 1. Now,
the pointer is retrieved directly without the [] access which prevents
the array being extended.
@tobil4sk
tobil4sk force-pushed the fix/cpp.Pointer.ofArray-empty branch from 773d932 to e61e919 Compare January 13, 2026 21:23
@tobil4sk

Copy link
Copy Markdown
Member Author

@Simn this should also be a pretty uncontroversial bug fix (with a test)

@Aidan63
Aidan63 merged commit 729beaf into HaxeFoundation:master Jun 19, 2026
120 checks passed
@tobil4sk
tobil4sk deleted the fix/cpp.Pointer.ofArray-empty branch June 19, 2026 10:45
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.

cpp.Pointer.ofArray breaks empty Bytes comparison

2 participants