crc32c: add missing header for std::runtime_error
[folly.git] / folly / detail / SlowFingerprint.h
index bf7a6d4294f96af2e6a01a39bf03b6c230bb914c..6dcc9a7a15ee33de4c1f846b228d8fa5ccee034f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * limitations under the License.
  */
 
-#ifndef FOLLY_DETAIL_SLOWFINGERPRINT_H_
-#define FOLLY_DETAIL_SLOWFINGERPRINT_H_
+#pragma once
 
 #include <folly/Fingerprint.h>
-#include <folly/detail/FingerprintPolynomial.h>
 #include <folly/Range.h>
+#include <folly/detail/FingerprintPolynomial.h>
 
 namespace folly {
 namespace detail {
@@ -77,7 +76,7 @@ class SlowFingerprint {
   void updateLSB(uint64_t val, int bits) {
     val <<= (64-bits);
     for (; bits != 0; --bits) {
-      updateBit(val & (1UL << 63));
+      updateBit(val & (1ULL << 63));
       val <<= 1;
     }
   }
@@ -88,5 +87,3 @@ class SlowFingerprint {
 
 }  // namespace detail
 }  // namespace folly
-
-#endif /* FOLLY_DETAIL_SLOWFINGERPRINT_H_ */