From 21d77a417e17ac92bfc10dbd742c867d4019ce69 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 25 Sep 2022 20:27:46 +1000 Subject: Cleanup: replace C-style casts with functional casts for numeric types Some changes missed from f68cfd6bb078482c4a779a6e26a56e2734edb5b8. --- source/blender/imbuf/intern/dds/DirectDrawSurface.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/imbuf/intern/dds/DirectDrawSurface.cpp') diff --git a/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp b/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp index ab2f0207be4..272014ea5eb 100644 --- a/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp +++ b/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp @@ -1464,19 +1464,19 @@ void DirectDrawSurface::printInfo() const if (header.pf.fourcc != 0) { /* Display fourcc code even when DDPF_FOURCC flag not set. */ printf("\tFourCC: '%c%c%c%c' (0x%.8X)\n", - (int)((header.pf.fourcc >> 0) & 0xFF), - (int)((header.pf.fourcc >> 8) & 0xFF), - (int)((header.pf.fourcc >> 16) & 0xFF), - (int)((header.pf.fourcc >> 24) & 0xFF), + int((header.pf.fourcc >> 0) & 0xFF), + int((header.pf.fourcc >> 8) & 0xFF), + int((header.pf.fourcc >> 16) & 0xFF), + int((header.pf.fourcc >> 24) & 0xFF), header.pf.fourcc); } if ((header.pf.flags & DDPF_FOURCC) && (header.pf.bitcount != 0)) { printf("\tSwizzle: '%c%c%c%c' (0x%.8X)\n", - (int)(header.pf.bitcount >> 0) & 0xFF, - (int)(header.pf.bitcount >> 8) & 0xFF, - (int)(header.pf.bitcount >> 16) & 0xFF, - (int)(header.pf.bitcount >> 24) & 0xFF, + int(header.pf.bitcount >> 0) & 0xFF, + int(header.pf.bitcount >> 8) & 0xFF, + int(header.pf.bitcount >> 16) & 0xFF, + int(header.pf.bitcount >> 24) & 0xFF, header.pf.bitcount); } else { -- cgit v1.2.3