diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2006-06-15 16:07:15 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2006-06-15 16:07:15 +0200 |
commit | 3d68698647fb17a6f5ae9a225f552cb0130fa946 (patch) | |
tree | b8a329310718de2a04a2a4e6b7f1f9e8f574d58b /src/radeon_video.c | |
parent | ab2b48e0df328fd08a2412911126b3184a601aea (diff) |
Fix semantic glitches pointed out by gcc -Wall.
The radeon driver builds warning-free with gcc -Wall here now.
Diffstat (limited to 'src/radeon_video.c')
-rw-r--r-- | src/radeon_video.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c index 30f3befd..e9e503f9 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -2159,10 +2159,9 @@ RADEONCopyRGB24Data( { sptr = src; - for ( i = 0 ; i < w; i++ ) + for ( i = 0 ; i < w; i++, sptr += 3 ) { - *dptr++ = ( ( *sptr++ ) << 24 ) | ( ( *sptr++ ) << 16 ) | - ( *sptr++ ); + *dptr++ = (sptr[0] << 24) | (sptr[1] << 16) | sptr[2]; } src += hpass * srcPitch; |