summaryrefslogtreecommitdiffstats
path: root/kimgio
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-26 21:28:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-26 21:28:48 -0600
commit77f4891c222583c8deffc34732ccf325bac9e11b (patch)
tree5123890a5c34e9297b26bdfa258cbe0ab9ad25c6 /kimgio
parent81dc14e8f035d33ab1de2c01314582ed2c17ad1c (diff)
downloadtdelibs-77f4891c222583c8deffc34732ccf325bac9e11b.tar.gz
tdelibs-77f4891c222583c8deffc34732ccf325bac9e11b.zip
Fix a number of tdelibs build warnings
Diffstat (limited to 'kimgio')
-rw-r--r--kimgio/dds.cpp4
1 files changed, 2 insertions, 2 deletions
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<uint>(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<uint>(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;