summaryrefslogtreecommitdiffstats
path: root/kimgio
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-26 21:28:48 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-07-03 02:57:07 +0200
commit2afebdbe7fd3aee27f3972c78d8f5ff56c0136cf (patch)
tree1051e486f80572eba45d714b840d62d1f5a94ecd /kimgio
parent3acd2816bb3a1c274e9690e669c28c2761232cc5 (diff)
downloadtdelibs-2afebdbe7fd3aee27f3972c78d8f5ff56c0136cf.tar.gz
tdelibs-2afebdbe7fd3aee27f3972c78d8f5ff56c0136cf.zip
Fix a number of tdelibs build warnings
(cherry picked from commit 77f4891c222583c8deffc34732ccf325bac9e11b)
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;