diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-03 13:30:30 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-03 20:47:53 +0200 |
commit | c2e81be8a59cea5e58ebc3c3d05141c5ab023a46 (patch) | |
tree | 266ff3be76ad65d37921b744d535537884824fc1 /components/script/dom/treewalker.rs | |
parent | 74f8c0eeb714fb7ca7964b36f1b82849e8a345ee (diff) | |
download | servo-c2e81be8a59cea5e58ebc3c3d05141c5ab023a46.tar.gz servo-c2e81be8a59cea5e58ebc3c3d05141c5ab023a46.zip |
Stop using int/uint in script.
Diffstat (limited to 'components/script/dom/treewalker.rs')
-rw-r--r-- | components/script/dom/treewalker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/treewalker.rs b/components/script/dom/treewalker.rs index d13b730af0d..1957999bcf4 100644 --- a/components/script/dom/treewalker.rs +++ b/components/script/dom/treewalker.rs @@ -330,7 +330,7 @@ impl<'a> PrivateTreeWalkerHelpers for JSRef<'a, TreeWalker> { fn accept_node(self, node: JSRef<Node>) -> Fallible<u16> { // "To filter node run these steps:" // "1. Let n be node's nodeType attribute value minus 1." - let n: uint = node.NodeType() as uint - 1; + let n = node.NodeType() - 1; // "2. If the nth bit (where 0 is the least significant bit) of whatToShow is not set, // return FILTER_SKIP." if (self.what_to_show & (1 << n)) == 0 { |