projects
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed VC++ 14.2 warnings
[libcds.git]
/
cds
/
algo
/
int_algo.h
diff --git
a/cds/algo/int_algo.h
b/cds/algo/int_algo.h
index a070ad330b57f6343a093de9bf04f7f817377704..b350936950aa964338fb41743af987e34bf29c2e 100644
(file)
--- a/
cds/algo/int_algo.h
+++ b/
cds/algo/int_algo.h
@@
-45,7
+45,7
@@
namespace cds { namespace beans {
static inline size_t log2ceil( size_t n )
{
size_t i = log2floor( n );
- return
size_t( 1
<< i ) < n ? i + 1 : i;
+ return
( size_t( 1 )
<< i ) < n ? i + 1 : i;
}
/// Returns largest previous power of 2 for \p n