Fix bug
This commit is contained in:
@@ -50,7 +50,7 @@ namespace
|
||||
header.magic -= '0';
|
||||
if (header.magic < 1 || header.magic > 6)
|
||||
{
|
||||
throw std::runtime_error("Unsupported magic number: P" + (header.magic + '0'));
|
||||
throw std::runtime_error(std::string("Unsupported format: P") + std::to_string(header.magic));
|
||||
}
|
||||
|
||||
MaybeSkipComments(stream);
|
||||
@@ -165,7 +165,7 @@ namespace OpenVulkano::Image
|
||||
}
|
||||
else
|
||||
{
|
||||
throw std::runtime_error("Unsupported format: P" + (header.magic + '0'));
|
||||
throw std::runtime_error(std::string("Unsupported format: P") + std::to_string(header.magic));
|
||||
}
|
||||
|
||||
if (header.magic == 1 || header.magic == 2 || header.magic == 4 || header.magic == 5)
|
||||
|
||||
Reference in New Issue
Block a user