Commit 90c6b04a0f5dcc9729815ab1a5e26f427bfbf096
1 parent
4cef29e2
fixed edge case
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/plugins/output.cpp
| @@ -203,7 +203,7 @@ class mtxOutput : public Output | @@ -203,7 +203,7 @@ class mtxOutput : public Output | ||
| 203 | if (!f.open(QFile::ReadWrite)) | 203 | if (!f.open(QFile::ReadWrite)) |
| 204 | qFatal("Unable to open %s for modifying.", qPrintable(file)); | 204 | qFatal("Unable to open %s for modifying.", qPrintable(file)); |
| 205 | for (int i=0; i<blockScores.rows; i++) { | 205 | for (int i=0; i<blockScores.rows; i++) { |
| 206 | - f.seek(headerSize + sizeof(float)*((rowBlock*Globals->blockSize+i)*targetFiles.size()+(columnBlock*Globals->blockSize))); | 206 | + f.seek(headerSize + sizeof(float)*(quint64(rowBlock*Globals->blockSize+i)*targetFiles.size()+(columnBlock*Globals->blockSize))); |
| 207 | f.write((const char*)blockScores.row(i).data, sizeof(float)*blockScores.cols); | 207 | f.write((const char*)blockScores.row(i).data, sizeof(float)*blockScores.cols); |
| 208 | } | 208 | } |
| 209 | f.close(); | 209 | f.close(); |