Permalink
Browse files

Ensure negation argument is signed.

  • Loading branch information...
1 parent af7fc5c commit 5871eadbe7651f4cf26dd757f7a94997d8d3ab2f @jrfonseca jrfonseca committed Apr 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 common/image.hpp
View
@@ -78,7 +78,7 @@ class Image {
}
inline signed stride(void) const {
- return flipped ? -width*channels : width*channels;
+ return flipped ? -(signed)(width*channels) : width*channels;
}
bool writeBMP(const char *filename) const;

0 comments on commit 5871ead

Please sign in to comment.