diff --git a/ReactAndroid/src/main/jni/react/JSCExecutor.cpp b/ReactAndroid/src/main/jni/react/JSCExecutor.cpp index 44d2354c2..0aa59246f 100644 --- a/ReactAndroid/src/main/jni/react/JSCExecutor.cpp +++ b/ReactAndroid/src/main/jni/react/JSCExecutor.cpp @@ -340,7 +340,7 @@ JSValueRef JSCExecutor::nativeRequire( } double moduleId = JSValueToNumber(ctx, arguments[0], exception); - if (moduleId <= (double) UINT32_MAX && moduleId >= 0.0) { + if (moduleId <= (double) std::numeric_limits::max() && moduleId >= 0.0) { try { executor->loadModule(moduleId); } catch (JSModulesUnbundle::ModuleNotFound&) {