Skip to content

Commit

Permalink
Fix warning on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ww898 committed Sep 12, 2018
1 parent ff0c454 commit 732d5e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ww898/utf_converters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ struct conv_strategy<Utf, Outf, It, Oit, true> final
{
static void func(It it, It const eit, Oit oit)
{
if (eit - it >= Utf::max_supported_symbol_size)
if (static_cast<size_t>(eit - it) >= Utf::max_supported_symbol_size)
{
auto const fast_eit = eit - Utf::max_supported_symbol_size;
while (it < fast_eit)
Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
"$<$<CONFIG:Release>:/Oi>"
"$<$<CONFIG:Release>:/Oy->")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
target_compile_options(utf-cpp-test PRIVATE -std=c++11)
target_compile_options(utf-cpp-test PRIVATE -std=c++11 -Wall -Wextra)
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
target_compile_options(utf-cpp-test PRIVATE -std=c++11 -stdlib=libc++)
target_compile_options(utf-cpp-test PRIVATE -std=c++11 -stdlib=libc++ -Wall -Wextra)
set_target_properties(utf-cpp-test PROPERTIES LINK_FLAGS -stdlib=libc++)
endif()

0 comments on commit 732d5e5

Please sign in to comment.