X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b47c832e5529dc6c632536b4665a005f0a85aec8..b7c542d5c6104aa3a52b0cafda59dff03510e888:/src/tiff/tif_swab.c?ds=sidebyside diff --git a/src/tiff/tif_swab.c b/src/tiff/tif_swab.c index 4130155f6d..37962b82a7 100644 --- a/src/tiff/tif_swab.c +++ b/src/tiff/tif_swab.c @@ -36,7 +36,7 @@ void TIFFSwabShort(uint16* wp) { register u_char* cp = (u_char*) wp; - int t; + u_char t; t = cp[1]; cp[1] = cp[0]; cp[0] = t; } @@ -47,7 +47,7 @@ void TIFFSwabLong(uint32* lp) { register u_char* cp = (u_char*) lp; - int t; + u_char t; t = cp[3]; cp[3] = cp[0]; cp[0] = t; t = cp[2]; cp[2] = cp[1]; cp[1] = t; @@ -59,7 +59,7 @@ void TIFFSwabArrayOfShort(uint16* wp, register u_long n) { register u_char* cp; - register int t; + register u_char t; /* XXX unroll loop some */ while (n-- > 0) { @@ -75,7 +75,7 @@ void TIFFSwabArrayOfLong(register uint32* lp, register u_long n) { register unsigned char *cp; - register int t; + register unsigned char t; /* XXX unroll loop some */ while (n-- > 0) {