Michael Stefaniuc : windowscodecs: Remove casts to the type of the casted variable.
Alexandre Julliard
julliard at winehq.org
Tue Sep 20 13:08:36 CDT 2011
Module: wine
Branch: master
Commit: 952699e8439a567faa4e1137d1d27913c856cfd9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=952699e8439a567faa4e1137d1d27913c856cfd9
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue Sep 20 15:49:05 2011 +0200
windowscodecs: Remove casts to the type of the casted variable.
---
dlls/windowscodecs/converter.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/windowscodecs/converter.c b/dlls/windowscodecs/converter.c
index a52c7d2..e404464 100644
--- a/dlls/windowscodecs/converter.c
+++ b/dlls/windowscodecs/converter.c
@@ -145,7 +145,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
srcrow = srcdata;
dstrow = pbBuffer;
for (y=0; y<prc->Height; y++) {
- srcbyte=(const BYTE*)srcrow;
+ srcbyte = srcrow;
dstpixel=(DWORD*)dstrow;
for (x=0; x<prc->Width; x+=8) {
BYTE srcval;
@@ -214,7 +214,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
srcrow = srcdata;
dstrow = pbBuffer;
for (y=0; y<prc->Height; y++) {
- srcbyte=(const BYTE*)srcrow;
+ srcbyte = srcrow;
dstpixel=(DWORD*)dstrow;
for (x=0; x<prc->Width; x+=4) {
BYTE srcval;
@@ -279,7 +279,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
srcrow = srcdata;
dstrow = pbBuffer;
for (y=0; y<prc->Height; y++) {
- srcbyte=(const BYTE*)srcrow;
+ srcbyte = srcrow;
dstpixel=(DWORD*)dstrow;
for (x=0; x<prc->Width; x+=2) {
BYTE srcval;
@@ -322,7 +322,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
srcrow = srcdata;
dstrow = pbBuffer;
for (y=0; y<prc->Height; y++) {
- srcbyte=(const BYTE*)srcrow;
+ srcbyte = srcrow;
dstpixel=(DWORD*)dstrow;
for (x=0; x<prc->Width; x++)
{
@@ -378,7 +378,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
srcrow = srcdata;
dstrow = pbBuffer;
for (y=0; y<prc->Height; y++) {
- srcbyte=(const BYTE*)srcrow;
+ srcbyte = srcrow;
dstpixel=(DWORD*)dstrow;
for (x=0; x<prc->Width; x++)
*dstpixel++ = colors[*srcbyte++];
@@ -417,7 +417,7 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
srcrow = srcdata;
dstrow = pbBuffer;
for (y=0; y<prc->Height; y++) {
- srcbyte=(const BYTE*)srcrow;
+ srcbyte = srcrow;
dstpixel=(DWORD*)dstrow;
for (x=0; x<prc->Width; x++)
{
More information about the wine-cvs
mailing list