Fixed crash on std::length_error

This commit is contained in:
Miroslav Bendík 2012-08-27 07:46:11 +02:00
parent 5a2375e608
commit e5cafeb8b8

@ -41,7 +41,7 @@ static inline int unsignedToSigned(long i, long max_positive)
static inline int readU16(const char *data) static inline int readU16(const char *data)
{ {
return int(data[0]) * 256 + data[1]; return uint8_t(data[0]) * 256 + uint8_t(data[1]);
} }
static inline int rgb2int(uint8_t r, uint8_t g, uint8_t b) static inline int rgb2int(uint8_t r, uint8_t g, uint8_t b)