Skip to content

Fix negative dim indexing#2994

Merged
awni merged 3 commits into
ml-explore:mainfrom
MillaFleurs:fix-negative-dim-indexing
Jan 20, 2026
Merged

Fix negative dim indexing#2994
awni merged 3 commits into
ml-explore:mainfrom
MillaFleurs:fix-negative-dim-indexing

Conversation

@MillaFleurs

Copy link
Copy Markdown
Contributor

Proposed changes

Please include a description of the problem or feature this PR is addressing. If there is a corresponding issue, include the issue #.

array.h mixes signed and unsigned ints, causing potential issues #2993

Issue # 2993

Checklist

Put an x in the boxes that apply.

  • [ X] I have read the CONTRIBUTING document
  • [ X] I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • [ X] I have added tests that prove my fix is effective or that my feature works
  • [ N/A ] I have updated the necessary documentation (if needed)

@awni awni force-pushed the fix-negative-dim-indexing branch from 09b46d0 to bdd3861 Compare January 15, 2026 15:59

@awni awni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@awni awni force-pushed the fix-negative-dim-indexing branch from bdd3861 to 97b7be0 Compare January 15, 2026 16:02
@awni awni merged commit 83bb789 into ml-explore:main Jan 20, 2026
15 checks passed
JakeHillion pushed a commit to JakeHillion/mlx that referenced this pull request Jan 21, 2026
Co-authored-by: KD2YCU <me@kd2ycu.com>
Co-authored-by: Awni Hannun <awni@apple.com>
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.

3 participants