From 77f4891c222583c8deffc34732ccf325bac9e11b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 26 Feb 2012 21:28:48 -0600 Subject: Fix a number of tdelibs build warnings --- kimgio/dds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kimgio') diff --git a/kimgio/dds.cpp b/kimgio/dds.cpp index 6fee86569..d174bf893 100644 --- a/kimgio/dds.cpp +++ b/kimgio/dds.cpp @@ -490,7 +490,7 @@ namespace { // Private. void GetBits( uchar bit_array[16] ) { - uint b = (uint &) bits[0]; + uint b = static_cast(bits[0]); bit_array[0] = uchar(b & 0x07); b >>= 3; bit_array[1] = uchar(b & 0x07); b >>= 3; bit_array[2] = uchar(b & 0x07); b >>= 3; @@ -500,7 +500,7 @@ namespace { // Private. bit_array[6] = uchar(b & 0x07); b >>= 3; bit_array[7] = uchar(b & 0x07); b >>= 3; - b = (uint &) bits[3]; + b = static_cast(bits[3]); bit_array[8] = uchar(b & 0x07); b >>= 3; bit_array[9] = uchar(b & 0x07); b >>= 3; bit_array[10] = uchar(b & 0x07); b >>= 3; -- cgit v1.2.1