logging: fix compiler compatibility for one more constexpr function
[folly.git] / folly / Padded.h
index 0a772a2d56fceb458d4e9a95b4775960d799bfdc..93b37ab4e4abfee37e47d73259150a220053db58 100644 (file)
@@ -385,7 +385,7 @@ class Adaptor {
   iterator end() {
     auto it = iterator(c_.end());
     if (lastCount_ != Node::kElementCount) {
-      it -= (Node::kElementCount - lastCount_);
+      it -= difference_type(Node::kElementCount - lastCount_);
     }
     return it;
   }