Skip to content

chore: fix C lint errors (issue #11347)#11348

Merged
kgryte merged 4 commits intostdlib-js:developfrom
GuneetGill:chore/fix-linting
Apr 10, 2026
Merged

chore: fix C lint errors (issue #11347)#11348
kgryte merged 4 commits intostdlib-js:developfrom
GuneetGill:chore/fix-linting

Conversation

@GuneetGill
Copy link
Copy Markdown
Contributor

Resolves #11347

Description

What is the purpose of this pull request?

This pull request:

  • Fixes a cppcheck constVariablePointer warning in unary-accumulate by declaring the strides pointer s1 as const int64_t *, since it is only read after assignment from stdlib_ndarray_strides.
  • Updates stdlib_ndarray_iteration_order to take const int64_t *strides in the public header and implementation, matching read-only use of strides and keeping the dispatch.c call type-correct without casts.

Checklist

AI Assistance

  • Yes
  • No

@stdlib-js/reviewers

@stdlib-bot stdlib-bot added First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Needs Review A pull request which needs code review. labels Apr 10, 2026
@GuneetGill GuneetGill mentioned this pull request Apr 10, 2026
Copy link
Copy Markdown
Contributor

@GeoDaoyu GeoDaoyu left a comment

Choose a reason for hiding this comment

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

It seems that the code is not up-to-date.

Co-authored-by: Athan <kgryte@gmail.com>
Signed-off-by: Athan <kgryte@gmail.com>
kgryte added 2 commits April 9, 2026 23:03
Signed-off-by: Athan <kgryte@gmail.com>
Signed-off-by: Athan <kgryte@gmail.com>
@kgryte kgryte added difficulty: 1 Low degree of difficulty. Should be straightforward to implement and/or resolve. review: 3 and removed Needs Review A pull request which needs code review. labels Apr 10, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

stdlib-bot commented Apr 10, 2026

Coverage Report

No coverage information available.

@kgryte kgryte merged commit d6065f1 into stdlib-js:develop Apr 10, 2026
46 checks passed
@kgryte
Copy link
Copy Markdown
Member

kgryte commented Apr 10, 2026

Thank you for your contribution and congratulations on your first PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

difficulty: 1 Low degree of difficulty. Should be straightforward to implement and/or resolve. First-time Contributor A pull request from a contributor who has never previously committed to the project repository. review: 3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix C lint errors

4 participants