diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 30a2bf96366bcf..0bc32f7846b022 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -955,7 +955,7 @@ bool IsArrayIndex(Environment* env, Local 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 ResolveExportsTarget(Environment* env,