| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index b270e76dd698cb39ccf228178b44abb9d1b295de..32908fc27612da31f93cdcac97136ee11388974f 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -5682,8 +5682,8 @@ void ReturnValue<T>::Set(int32_t i) {
|
| template<typename T>
|
| void ReturnValue<T>::Set(uint32_t i) {
|
| typedef internal::Internals I;
|
| - if (V8_LIKELY(I::IsValidSmi(i))) {
|
| - *value_ = I::IntToSmi(i);
|
| + if (V8_LIKELY(i <= INT32_MAX)) {
|
| + Set(static_cast<int32_t>(i));
|
| return;
|
| }
|
| Set(Integer::NewFromUnsigned(i, GetIsolate()));
|
|
|