diff options
author | Jack Lloyd <[email protected]> | 2018-12-31 18:39:55 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-31 18:39:55 -0500 |
commit | 08169bf624ec46658654dab4a31dd2d295d739b9 (patch) | |
tree | 985e63a612354719f711165f5c2948ff4f1f7e00 /src/lib/utils/bit_ops.h | |
parent | ea5db236715ffd07ca7e43e27946596ccfba8ef0 (diff) |
Fix MSVC warnings
Diffstat (limited to 'src/lib/utils/bit_ops.h')
-rw-r--r-- | src/lib/utils/bit_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/bit_ops.h b/src/lib/utils/bit_ops.h index 36a8d0259..352035bf4 100644 --- a/src/lib/utils/bit_ops.h +++ b/src/lib/utils/bit_ops.h @@ -107,7 +107,7 @@ inline size_t ctz(T n) for(size_t s = 8*sizeof(T) / 2; s > 0; s /= 2) { const T mask = (static_cast<T>(1) << s) - 1; - const T z = s * (ct_is_zero(n & mask) & 1); + const size_t z = s * (ct_is_zero(n & mask) & 1); lb += z; n >>= z; } |