(Wangle) unorderedReduce
[folly.git] / folly / Bits.h
index a93be1b6c365224ae08aea002bce3c972b043a8c..4c1182a633c99dbac620a4e251065d47e77631f6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -522,10 +522,10 @@ class BitIterator
   ssize_t distance_to(const BitIterator& other) const {
     return
       (other.base_reference() - this->base_reference()) * bitsPerBlock() +
-      (other.bitOffset_ - bitOffset_);
+      other.bitOffset_ - bitOffset_;
   }
 
-  size_t bitOffset_;
+  unsigned int bitOffset_;
 };
 
 /**