mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
Fixed gcc-4.7 warnings
This commit is contained in:
parent
fcbdecfd1e
commit
d9bb24a2e0
4 changed files with 18 additions and 13 deletions
|
@ -78,7 +78,7 @@ public:
|
|||
|
||||
std::string getExtensionMessageID(const std::string& name)
|
||||
{
|
||||
char id[1] = { registry_->getExtensionMessageID(name) };
|
||||
unsigned char id[1] = { registry_->getExtensionMessageID(name) };
|
||||
return std::string(&id[0], &id[1]);
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ void DefaultExtensionMessageFactoryTest::testCreateMessage_unknown()
|
|||
{
|
||||
peer_->setExtension("foo", 255);
|
||||
|
||||
char id[1] = { 255 };
|
||||
unsigned char id[1] = { 255 };
|
||||
|
||||
std::string data = std::string(&id[0], &id[1]);
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue