[PR #12273] Replaced the sizeof parameter of the if statement with ARRAYSIZE #28948

Open
opened 2026-01-31 09:31:49 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/12273

State: closed
Merged: Yes


The pull request fixes the issue where "sizeof" parameter was use instead of "ARRAYSIZE".

PR Checklist

  • Closes #xxx
  • CLA signed. If not, go over here and sign the CLA
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

This was a pretty straight forward issue, i just replace sizeof which gives the byte size with ARRAYSIZE which give the number of elements in the array.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/12273 **State:** closed **Merged:** Yes --- The pull request fixes the issue where "sizeof" parameter was use instead of "ARRAYSIZE". ## PR Checklist * [x] Closes #xxx * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments This was a pretty straight forward issue, i just replace sizeof which gives the byte size with ARRAYSIZE which give the number of elements in the array.
claunia added the pull-request label 2026-01-31 09:31:49 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28948