Commit ce3d365f authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

restore needed cast to correct type with const

Originally committed as revision 26957 to svn://
parent 437fd77b
......@@ -325,14 +325,14 @@ static inline void RENAME(rgb16to15)(const uint8_t *src, uint8_t *dst, long src_
mm_end = end - 3;
while (s < mm_end)
register uint32_t x= *s;
register uint32_t x= *((const uint32_t*)s);
*((uint32_t *)d) = ((x>>1)&0x7FE07FE0) | (x&0x001F001F);
if (s < end)
register uint16_t x= *s;
register uint16_t x= *((const uint16_t*)s);
*((uint16_t *)d) = ((x>>1)&0x7FE0) | (x&0x001F);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment