| Index: Source/bindings/scripts/v8_types.py
|
| diff --git a/Source/bindings/scripts/v8_types.py b/Source/bindings/scripts/v8_types.py
|
| index 46b005222f31cbda0999e237c8251aaa55bd2d2f..7ad89b54b406ac6d9f16c728b82f35cccbc84d7c 100644
|
| --- a/Source/bindings/scripts/v8_types.py
|
| +++ b/Source/bindings/scripts/v8_types.py
|
| @@ -539,7 +539,7 @@ def preprocess_idl_type_and_value(idl_type, cpp_value, extended_attributes):
|
| idl_type.base_type in ['unsigned long', 'unsigned short']):
|
| cpp_value = cpp_value.replace('getUnsignedIntegralAttribute',
|
| 'getIntegralAttribute')
|
| - cpp_value = 'std::max(0, %s)' % cpp_value
|
| + cpp_value = 'std::max(0, static_cast<int>(%s))' % cpp_value
|
| return idl_type, cpp_value
|
|
|
|
|
|
|