Commit ab9fa227 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Unintended sign extension: make the shorts deliberately into ints

parent 0949f174
......@@ -450,7 +450,9 @@ bool KDcraw::extractRAWData(const QString& filePath, QByteArray& rawData, DcrawI
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*>(;
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