From: José Fonseca Date: Mon, 23 Apr 2012 11:20:25 +0000 (+0100) Subject: Ensure negation argument is signed. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=5871eadbe7651f4cf26dd757f7a94997d8d3ab2f;hp=af7fc5cf9847b5622dcb0901cce7199df80c101d;p=apitrace Ensure negation argument is signed. --- 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;