Commit c396c541 authored by Dmitry Kazakov's avatar Dmitry Kazakov Committed by Boudewijn Rempt

Fix building on i386 architechture

parent f765c5da
......@@ -219,8 +219,8 @@ QVector<Tile> generateTiles(int size,
#endif
// the 256 are used to make sure that we have a good alignment no matter what build options are used.
const size_t pixelAlignment = qMax(size_t(vecSize * sizeof(float)), 256ul);
const size_t maskAlignment = qMax(size_t(vecSize), 256ul);
const size_t pixelAlignment = qMax(size_t(vecSize * sizeof(float)), size_t(256));
const size_t maskAlignment = qMax(size_t(vecSize), size_t(256));
for (int i = 0; i < size; i++) {
void *ptr = NULL;
int error = posix_memalign(&ptr, pixelAlignment, numPixels * pixelSize + srcAlignmentShift);
......
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