diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-02-20 14:37:40 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-02-20 14:45:46 +0100 |
commit | f75f2798044bae48fd355a9ac36d9014f1d666fd (patch) | |
tree | 73b0e744c582781e7de9bda51da89aec51e324a6 /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | 45a0e0e65c0d104c3e29f6521b11b4285cde58d2 (diff) | |
download | servo-f75f2798044bae48fd355a9ac36d9014f1d666fd.tar.gz servo-f75f2798044bae48fd355a9ac36d9014f1d666fd.zip |
Stop casting the right-hand side of shifts to uint.
This is no longer required.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 18271a3e4ac..1865facf9d5 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -1484,7 +1484,7 @@ const Class_name: [u8; %i] = %s; static Class: DOMJSClass = DOMJSClass { base: js::Class { name: &Class_name as *const u8 as *const libc::c_char, - flags: JSCLASS_IS_DOMJSCLASS | %s | (((%s) & JSCLASS_RESERVED_SLOTS_MASK) << JSCLASS_RESERVED_SLOTS_SHIFT as uint), //JSCLASS_HAS_RESERVED_SLOTS(%s), + flags: JSCLASS_IS_DOMJSCLASS | %s | (((%s) & JSCLASS_RESERVED_SLOTS_MASK) << JSCLASS_RESERVED_SLOTS_SHIFT), //JSCLASS_HAS_RESERVED_SLOTS(%s), addProperty: Some(JS_PropertyStub), delProperty: Some(JS_PropertyStub), getProperty: Some(JS_PropertyStub), @@ -1567,7 +1567,7 @@ class CGPrototypeJSClass(CGThing): const PrototypeClassName__: [u8; %s] = %s; static PrototypeClass: JSClass = JSClass { name: &PrototypeClassName__ as *const u8 as *const libc::c_char, - flags: (1 & JSCLASS_RESERVED_SLOTS_MASK) << JSCLASS_RESERVED_SLOTS_SHIFT as uint, //JSCLASS_HAS_RESERVED_SLOTS(1) + flags: (1 & JSCLASS_RESERVED_SLOTS_MASK) << JSCLASS_RESERVED_SLOTS_SHIFT, //JSCLASS_HAS_RESERVED_SLOTS(1) addProperty: Some(JS_PropertyStub), delProperty: Some(JS_PropertyStub), getProperty: Some(JS_PropertyStub), |