Chromium Code Reviews| 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..d92b2629fecd14bb9eabe4ee27991f18f05852b7 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, int(%s))' % cpp_value |
|
abarth-chromium
2014/07/14 06:04:35
static_cast<int>(...)
haraken
2014/07/14 09:59:12
Done.
|
| return idl_type, cpp_value |