mirror of https://github.com/aria2/aria2
Cast size_t to unsigned long for %lu
parent
50a8549835
commit
9752704614
|
@ -86,7 +86,7 @@ std::string HandshakeExtensionMessage::toString() const
|
||||||
getExtensionName().c_str(),
|
getExtensionName().c_str(),
|
||||||
util::percentEncode(clientVersion_).c_str(),
|
util::percentEncode(clientVersion_).c_str(),
|
||||||
tcpPort_,
|
tcpPort_,
|
||||||
metadataSize_));
|
static_cast<unsigned long>(metadataSize_)));
|
||||||
for(std::map<std::string, uint8_t>::const_iterator itr = extensions_.begin(),
|
for(std::map<std::string, uint8_t>::const_iterator itr = extensions_.begin(),
|
||||||
eoi = extensions_.end(); itr != eoi; ++itr) {
|
eoi = extensions_.end(); itr != eoi; ++itr) {
|
||||||
const std::map<std::string, uint8_t>::value_type& vt = *itr;
|
const std::map<std::string, uint8_t>::value_type& vt = *itr;
|
||||||
|
|
|
@ -127,7 +127,7 @@ InputIterator expandLoop
|
||||||
if(start <= end) {
|
if(start <= end) {
|
||||||
std::string format;
|
std::string format;
|
||||||
if(minus-first == colon-minus-1) {
|
if(minus-first == colon-minus-1) {
|
||||||
format = fmt("%%0%lud", minus-first);
|
format = fmt("%%0%lud", static_cast<unsigned long>(minus-first));
|
||||||
} else {
|
} else {
|
||||||
format = "%d";
|
format = "%d";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue