diff --git a/src/runtime.cc b/src/runtime.cc index 7ad66894fd..6be77a9972 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -2482,7 +2482,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SuspendJSGeneratorObject) { // allocation fails. intptr_t offset = frame->pc() - function->code()->instruction_start(); ASSERT(offset > 0 && Smi::IsValid(offset)); - generator_object->set_continuation(offset); + generator_object->set_continuation(static_cast(offset)); // It's possible for the context to be other than the initial context even if // there is no stack handler active. For example, this is the case in the