From 31190d4c6d162044c380166372b1294bbe221fe7 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Wed, 2 Jun 2021 00:32:10 -0700 Subject: [PATCH] chore: use static_cast rather than C-style cast (#29467) --- shell/common/node_bindings.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shell/common/node_bindings.cc b/shell/common/node_bindings.cc index 33a16ab9f8..2ae2379b6f 100644 --- a/shell/common/node_bindings.cc +++ b/shell/common/node_bindings.cc @@ -444,8 +444,9 @@ node::Environment* NodeBindings::CreateEnvironment( node::EnvironmentFlags::kNoRegisterESMLoader | node::EnvironmentFlags::kNoInitializeInspector; v8::TryCatch try_catch(context->GetIsolate()); - env = node::CreateEnvironment(isolate_data_, context, args, exec_args, - (node::EnvironmentFlags::Flags)flags); + env = node::CreateEnvironment( + isolate_data_, context, args, exec_args, + static_cast(flags)); DCHECK(env); // This will only be caught when something has gone terrible wrong as all