Commit ab9fa227 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Unintended sign extension: make the shorts deliberately into ints

CID:249041
parent 0949f174
......@@ -450,7 +450,9 @@ bool KDcraw::extractRAWData(const QString& filePath, QByteArray& rawData, DcrawI
}
else
{
rawData.resize((int)(raw.imgdata.sizes.iwidth * raw.imgdata.sizes.iheight * sizeof(unsigned short)));
int w = raw.imgdata.sizes.iwidth;
int h = raw.imgdata.sizes.iheight;
rawData.resize(w * h * sizeof(unsigned short));
unsigned short* output = reinterpret_cast<unsigned short*>(rawData.data());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment