Minor cleanup

This commit is contained in:
Victor Zverovich 2018-07-17 08:54:22 -07:00
parent efd8ee8a7f
commit a9e261599b
2 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,10 @@
cmake_minimum_required(VERSION 3.1.0)
# Use newer policies if available,
# up to most recent tested version of CMake
# Use newer policies if available, up to most recent tested version of CMake.
if(${CMAKE_VERSION} VERSION_LESS 3.11)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
else()
cmake_policy(VERSION 3.11)
cmake_policy(VERSION 3.11)
endif()
# Determine if fmt is built as a subproject (using add_subdirectory)

View File

@ -1102,7 +1102,7 @@ class basic_format_args {
static_cast<unsigned long long>(-signed_types);
if (index < num_args)
arg = args_[index];
return arg;;
return arg;
}
if (index > internal::max_packed_args)
return arg;