mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
fix warning (for -Wextra)
This commit is contained in:
parent
49243e6c94
commit
57e35349e5
146 changed files with 459 additions and 499 deletions
|
@ -45,8 +45,7 @@ namespace sprout {
|
|||
FloatType number = FloatType(),
|
||||
std::size_t num_digits = 0,
|
||||
std::size_t num_decimals = 0,
|
||||
long exponent = 0,
|
||||
long n = 0
|
||||
long exponent = 0
|
||||
)
|
||||
{
|
||||
return exponent >= std::numeric_limits<FloatType>::min_exponent
|
||||
|
@ -91,8 +90,7 @@ namespace sprout {
|
|||
number,
|
||||
num_digits,
|
||||
num_decimals,
|
||||
negative ? exponent + n : exponent - n,
|
||||
n
|
||||
negative ? exponent + n : exponent - n
|
||||
)
|
||||
;
|
||||
}
|
||||
|
@ -259,7 +257,7 @@ namespace sprout {
|
|||
std::is_floating_point<FloatType>::value,
|
||||
FloatType
|
||||
>::type
|
||||
str_to_float(Char const* str, std::nullptr_t endptr) {
|
||||
str_to_float(Char const* str, std::nullptr_t) {
|
||||
return sprout::detail::str_to_float<FloatType>(str);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue