Fix int64_t -> unsigned conversion
This commit is contained in:
parent
c5859da61a
commit
1c625ae79f
@ -1064,8 +1064,9 @@ class basic_format_args {
|
|||||||
|
|
||||||
unsigned max_size() const {
|
unsigned max_size() const {
|
||||||
int64_t signed_types = static_cast<int64_t>(types_);
|
int64_t signed_types = static_cast<int64_t>(types_);
|
||||||
return signed_types < 0 ?
|
return static_cast<unsigned>(signed_types < 0
|
||||||
-signed_types : static_cast<int64_t>(internal::max_packed_args);
|
? -signed_types
|
||||||
|
: static_cast<int64_t>(internal::max_packed_args));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user