@@ -1184,7 +1184,7 @@ static inline uint64_t opencvLittleToHost64(uint64_t x){
1184
1184
#if OPENCV_LITTLEENDIAN
1185
1185
return x;
1186
1186
#else
1187
- return opencvLittleToHost64 ((uchar*)&x);
1187
+ return opencvLittleToHost64 ((const uchar*)&x);
1188
1188
#endif
1189
1189
}
1190
1190
@@ -1552,7 +1552,7 @@ static inline void ICV_HLINE_8(uchar* ptr, int xl, int xr, const uchar* color)
1552
1552
{
1553
1553
if (is_aligned (((uchar*)(ptr) + (xl)*8 ), 0x8 ))
1554
1554
{
1555
- uint64_t c = opencvLittleToHost64 ((uchar*)( color) );
1555
+ uint64_t c = opencvLittleToHost64 (color);
1556
1556
uint64_t * hline_ptr = (uint64_t *)((uchar*)(ptr) + (xl)*(8 ));
1557
1557
uint64_t * hline_max_ptr = (uint64_t *)((uchar*)(ptr) + (xr)*(8 ));
1558
1558
for ( ; hline_ptr <= hline_max_ptr; )
@@ -1604,8 +1604,8 @@ static inline void ICV_HLINE_16(uchar* ptr, int xl, int xr, const uchar* color)
1604
1604
{
1605
1605
if (is_aligned (((uchar*)(ptr) + (xl)*16 ), 0x8 ))
1606
1606
{
1607
- uint64_t c[2 ] = {opencvLittleToHost64 ((uchar*)( color) +0x00 ),
1608
- opencvLittleToHost64 ((uchar*)( color) +0x08 )};
1607
+ uint64_t c[2 ] = {opencvLittleToHost64 (color+0x00 ),
1608
+ opencvLittleToHost64 (color+0x08 )};
1609
1609
uint64_t * hline_ptr = (uint64_t *)((uchar*)(ptr) + (xl)*(16 ));
1610
1610
uint64_t * hline_max_ptr = (uint64_t *)((uchar*)(ptr) + (xr)*(16 ));
1611
1611
for ( ; hline_ptr <= hline_max_ptr; )
@@ -1641,9 +1641,9 @@ static inline void ICV_HLINE_24(uchar* ptr, int xl, int xr, const uchar* color)
1641
1641
{
1642
1642
if (is_aligned (((uchar*)(ptr) + (xl)*24 ), 0x8 ))
1643
1643
{
1644
- uint64_t c[3 ] = {opencvLittleToHost64 ((uchar*)( color) +0x00 ),
1645
- opencvLittleToHost64 ((uchar*)( color) +0x08 ),
1646
- opencvLittleToHost64 ((uchar*)( color) +0x10 )};
1644
+ uint64_t c[3 ] = {opencvLittleToHost64 (color+0x00 ),
1645
+ opencvLittleToHost64 (color+0x08 ),
1646
+ opencvLittleToHost64 (color+0x10 )};
1647
1647
uint64_t * hline_ptr = (uint64_t *)((uchar*)(ptr) + (xl)*(24 ));
1648
1648
uint64_t * hline_max_ptr = (uint64_t *)((uchar*)(ptr) + (xr)*(24 ));
1649
1649
for ( ; hline_ptr <= hline_max_ptr; )
@@ -1684,10 +1684,10 @@ static inline void ICV_HLINE_32(uchar* ptr, int xl, int xr, const uchar* color)
1684
1684
{
1685
1685
if (is_aligned (((uchar*)(ptr) + (xl)*32 ), 0x8 ))
1686
1686
{
1687
- uint64_t c[4 ] = {opencvLittleToHost64 ((uchar*)( color) +0x00 ),
1688
- opencvLittleToHost64 ((uchar*)( color) +0x08 ),
1689
- opencvLittleToHost64 ((uchar*)( color) +0x10 ),
1690
- opencvLittleToHost64 ((uchar*)( color) +0x18 )};
1687
+ uint64_t c[4 ] = {opencvLittleToHost64 (color+0x00 ),
1688
+ opencvLittleToHost64 (color+0x08 ),
1689
+ opencvLittleToHost64 (color+0x10 ),
1690
+ opencvLittleToHost64 (color+0x18 )};
1691
1691
uint64_t * hline_ptr = (uint64_t *)((uchar*)(ptr) + (xl)*(32 ));
1692
1692
uint64_t * hline_max_ptr = (uint64_t *)((uchar*)(ptr) + (xr)*(32 ));
1693
1693
for ( ; hline_ptr <= hline_max_ptr; )
0 commit comments