Skip to content

src: replace ARRAY_SIZE with typesafe arraysize - #6199

Closed
bnoordhuis wants to merge 2 commits into
nodejs:v5.xfrom
bnoordhuis:backport-5969
Closed

src: replace ARRAY_SIZE with typesafe arraysize#6199
bnoordhuis wants to merge 2 commits into
nodejs:v5.xfrom
bnoordhuis:backport-5969

Conversation

@bnoordhuis

Copy link
Copy Markdown
Member

To prevent `ARRAY_SIZE(&arg)` (i.e., taking the array size of a pointer)
from happening again.
PR-URL: nodejs#5969
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Make the `num_values_` and `num_fields_` unsigned and remove an
erroneous comment.
PR-URL: nodejs#5969
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@bnoordhuisbnoordhuis mentioned this pull request Apr 14, 2016
4 tasks
@mscdexmscdex added the lib / src Issues and PRs related to general changes in the lib or src directory. label Apr 14, 2016
@bnoordhuis

Copy link
Copy Markdown
MemberAuthor

CI is green.

@MylesBorins

Copy link
Copy Markdown
Contributor

landed in 60a73a2...20bb92f

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

Labels

lib / srcIssues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@bnoordhuis@MylesBorins@mscdex