mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-13 18:39:35 +00:00
Minor cleanup
This commit is contained in:
parent
efd8ee8a7f
commit
a9e261599b
@ -1,11 +1,10 @@
|
|||||||
cmake_minimum_required(VERSION 3.1.0)
|
cmake_minimum_required(VERSION 3.1.0)
|
||||||
|
|
||||||
# Use newer policies if available,
|
# Use newer policies if available, up to most recent tested version of CMake.
|
||||||
# up to most recent tested version of CMake
|
|
||||||
if(${CMAKE_VERSION} VERSION_LESS 3.11)
|
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()
|
else()
|
||||||
cmake_policy(VERSION 3.11)
|
cmake_policy(VERSION 3.11)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Determine if fmt is built as a subproject (using add_subdirectory)
|
# Determine if fmt is built as a subproject (using add_subdirectory)
|
||||||
|
@ -1102,7 +1102,7 @@ class basic_format_args {
|
|||||||
static_cast<unsigned long long>(-signed_types);
|
static_cast<unsigned long long>(-signed_types);
|
||||||
if (index < num_args)
|
if (index < num_args)
|
||||||
arg = args_[index];
|
arg = args_[index];
|
||||||
return arg;;
|
return arg;
|
||||||
}
|
}
|
||||||
if (index > internal::max_packed_args)
|
if (index > internal::max_packed_args)
|
||||||
return arg;
|
return arg;
|
||||||
|
Loading…
Reference in New Issue
Block a user