Skip to content

Commit

Permalink
Fixed warning for 64-bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenick committed Sep 9, 2014
1 parent 69b2c3c commit a320a32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ option(CASS_BUILD_EXAMPLES "Build examples" ON)
#-------------------
# Version
#-------------------

set(PROJECT_VERSION_MAJOR 1)
set(PROJECT_VERSION_MINOR 0)
set(PROJECT_VERSION_PATCH 0)
Expand Down Expand Up @@ -154,6 +155,7 @@ endif()
#-------------------
# Cassandra static and shared
#-------------------

include_directories(${INCLUDES})

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
Expand Down Expand Up @@ -274,6 +276,7 @@ endif()
#-------------------
# Examples
#-------------------

if(CASS_BUILD_EXAMPLES)
add_subdirectory(examples/async)
add_subdirectory(examples/basic)
Expand Down
2 changes: 1 addition & 1 deletion src/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ inline size_t next_pow_2(size_t num) {
size_t next = 2;
size_t i = 0;
while (next < num) {
next = 1 << i++;
next = static_cast<size_t>(1) << i++;
}
return next;
}
Expand Down

0 comments on commit a320a32

Please sign in to comment.