folly/SmallLocks.h compiler warning
authorAnton Likhtarov <alikhtarov@fb.com>
Fri, 14 Sep 2012 00:01:29 +0000 (17:01 -0700)
committerJordan DeLong <jdelong@fb.com>
Mon, 17 Sep 2012 01:31:03 +0000 (18:31 -0700)
Summary: Couldn't get an HPHP extension to compile against this

Test Plan: compiled HPHP including folly/dynamic.h

Reviewed By: delong.j@fb.com

FB internal diff: D574364

folly/SmallLocks.h

index 91d2546a1778a93e12cecd5be699c535f22d0673..51abb97c738608bf346165117e51eb5989ccd874 100644 (file)
@@ -59,7 +59,7 @@ namespace detail {
    * spinning, and falls back to sleeping for small quantums.
    */
   class Sleeper {
-    static const int32_t kMaxActiveSpin = 4000;
+    static const uint32_t kMaxActiveSpin = 4000;
 
     uint32_t spinCount;