From 5871eadbe7651f4cf26dd757f7a94997d8d3ab2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 23 Apr 2012 12:20:25 +0100 Subject: [PATCH] Ensure negation argument is signed. --- common/image.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0