Skip to content

Commit

Permalink
src: use hex not decimal in IsArrayIndex
Browse files Browse the repository at this point in the history
PR-URL: #31758
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
codebytere committed Mar 30, 2020
1 parent aa5afd0 commit 98640f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_wrap.cc
Expand Up @@ -923,7 +923,7 @@ bool IsArrayIndex(Environment* env, Local<Value> p) {
if (!n->ToInteger(context).ToLocal(&cmp_integer)) {
return false;
}
return n_dbl > 0 && n_dbl < (2 ^ 32) - 1;
return n_dbl > 0 && n_dbl < (1LL << 32) - 1;
}

Maybe<URL> ResolveExportsTarget(Environment* env,
Expand Down

0 comments on commit 98640f7

Please sign in to comment.