diff options
| author | Jonas Ask | 2009-11-14 14:57:50 +0000 |
|---|---|---|
| committer | Jonas Ask | 2009-11-14 14:57:50 +0000 |
| commit | 2b672f557a411e4641d65b50a8760e8f13759f12 (patch) | |
| tree | 2f18df3ce113b14b9dac0970e5fcf2929f170243 /ConditionalSprite.cpp | |
| parent | 243ec77e55ae06caec3ab8ae54f024924e5b3f95 (diff) | |
| download | stonesense-2b672f557a411e4641d65b50a8760e8f13759f12.tar.gz stonesense-2b672f557a411e4641d65b50a8760e8f13759f12.tar.bz2 stonesense-2b672f557a411e4641d65b50a8760e8f13759f12.tar.xz | |
Removed a bunch of warnings.
Diffstat (limited to 'ConditionalSprite.cpp')
| -rw-r--r-- | ConditionalSprite.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ConditionalSprite.cpp b/ConditionalSprite.cpp index 9d77877..7108b5a 100644 --- a/ConditionalSprite.cpp +++ b/ConditionalSprite.cpp @@ -15,7 +15,7 @@ RootBlock::RootBlock() RootBlock::~RootBlock(void)
{
//cout << "RootBlock -" << endl;
- uint32_t max = children.size();
+ uint32_t max = (uint32_t)children.size();
for(uint32_t i=0; i<max; i++)
{
delete(children[i]);
@@ -25,7 +25,7 @@ RootBlock::~RootBlock(void) bool RootBlock::BlockMatches(Block* b)
{
bool haveMatch = false;
- uint32_t max = children.size();
+ uint32_t max = (uint32_t)children.size();
for(uint32_t i=0; i<max; i++)
{
@@ -56,7 +56,7 @@ SpriteBlock::~SpriteBlock(void) //cout << "SpriteBlock -" << endl;
delete(elsenode);
delete(conditions);
- uint32_t max = children.size();
+ uint32_t max = (uint32_t)children.size();
for(uint32_t i=0; i<max; i++)
{
delete(children[i]);
@@ -78,7 +78,7 @@ bool SpriteBlock::BlockMatches(Block* b) bool haveMatch=false;
if (condMatch)
{
- uint32_t max = children.size();
+ uint32_t max = (uint32_t)children.size();
for(uint32_t i=0; i<max; i++)
{
if (children[i]->BlockMatches(b))
@@ -124,7 +124,7 @@ RotationBlock::RotationBlock() RotationBlock::~RotationBlock(void)
{
//cout << "SpriteBlock -" << endl;
- uint32_t max = children.size();
+ uint32_t max = (uint32_t)children.size();
for(uint32_t i=0; i<max; i++)
{
delete(children[i]);
@@ -134,7 +134,7 @@ RotationBlock::~RotationBlock(void) bool RotationBlock::BlockMatches(Block* b)
{
int index = DisplayedRotation;
- uint32_t max = children.size();
+ int max = (int)children.size();
if (max == 0)
return false;
while (index >= max)
|
