X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fimage.hpp;h=e930512f86473c89352a8990443cd9bbff40d622;hb=ca7283268b6ecc29d371624b908fd85c30024056;hp=ea3eefb0d589c6e3f342860b8a1bd9720b3011bf;hpb=12a22803faa06a0db229b6dfb6130a0e8156ba31;p=apitrace diff --git a/common/image.hpp b/common/image.hpp index ea3eefb..e930512 100644 --- a/common/image.hpp +++ b/common/image.hpp @@ -78,7 +78,7 @@ public: } inline signed stride(void) const { - return flipped ? -width*channels : width*channels; + return flipped ? -(signed)(width*channels) : width*channels; } bool writeBMP(const char *filename) const;