commit | 48dc259f95ae6c3ac9cc24a2018711b8f9c54c24 | [log] [tgz] |
---|---|---|
author | Paul Wankadia <junyer@google.com> | Thu Jul 14 15:25:15 2016 +1000 |
committer | Paul Wankadia <junyer@google.com> | Thu Jul 14 05:27:17 2016 +0000 |
tree | 412683ba7d9f94d411070595195c346cccf1283f | |
parent | 636bc71728b7488c43f9441ecfc80bdb1905b3f0 [diff] |
Fix an error from MSVC. Change-Id: I32b5e032f9c0c0da6075922afe99bfd864c1f166 Reviewed-on: https://code-review.googlesource.com/5246 Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/util/bitmap.h b/util/bitmap.h index 2e95c85..36106b0 100644 --- a/util/bitmap.h +++ b/util/bitmap.h
@@ -46,9 +46,9 @@ #if defined(__GNUC__) return __builtin_ctzll(n); #elif defined(_MSC_VER) - int c; + unsigned long c; _BitScanForward64(&c, n); - return c; + return static_cast<int>(c); #else #error "bit scan forward not implemented" #endif