diff options
author | Jack Lloyd <[email protected]> | 2017-10-03 00:51:56 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-03 00:51:56 -0400 |
commit | 9c19ddda362d9749e891e58bff67279853c45259 (patch) | |
tree | 6aa0de9130c22dd686f3568f93f093599e1ac7fa | |
parent | 4581cb83d616ec5bdea413019994fc01dfdf49ec (diff) |
Force expand_mask to be on T instead of int
Which is what the expression evaluates to. Caught by MSVC warning.
-rw-r--r-- | src/lib/utils/ct_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/ct_utils.h b/src/lib/utils/ct_utils.h index 93691fc0a..5d97cb869 100644 --- a/src/lib/utils/ct_utils.h +++ b/src/lib/utils/ct_utils.h @@ -127,7 +127,7 @@ inline T is_equal(T x, T y) template<typename T> inline T is_less(T a, T b) { - return expand_top_bit(a ^ ((a^b) | ((a-b)^a))); + return expand_top_bit<T>(a ^ ((a^b) | ((a-b)^a))); } template<typename T> |