Skip to content

Commit

Permalink
src: use hex not decimal in IsArrayIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 13, 2020
1 parent a484f1a commit 6cb838e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,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 6cb838e

Please sign in to comment.