diff options
author | Nayd <dnpd.dd@gmail.com> | 2014-12-25 19:44:36 +0000 |
---|---|---|
committer | Nayd <dnpd.dd@gmail.com> | 2014-12-25 20:52:53 +0000 |
commit | 4b7c1d5e4503bde783dba3bd748efdbf825df259 (patch) | |
tree | ef1a6df0534813cf698c3f5df05586b786f51203 /src | |
parent | db2816cfba45c5840434e2d846deee3ef1aa95b0 (diff) |
Core/Items: Fix signed/unsigned mismatch warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp | 20 | ||||
-rw-r--r-- | src/server/game/Entities/Item/Item.cpp | 8 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp index 36d78ba389c..dc23c0157eb 100644 --- a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp +++ b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp @@ -272,10 +272,10 @@ bool AuctionBotSeller::Initialize() if (prototype->GetBaseItemLevel() > value) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_ITEM_MIN_REQ_LEVEL)) - if (prototype->GetBaseRequiredLevel() < value) + if (prototype->GetBaseRequiredLevel() < static_cast<int32>(value)) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_ITEM_MAX_REQ_LEVEL)) - if (prototype->GetBaseRequiredLevel() > value) + if (prototype->GetBaseRequiredLevel() > static_cast<int32>(value)) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_ITEM_MIN_SKILL_RANK)) if (prototype->GetRequiredSkillRank() < value) @@ -290,10 +290,10 @@ bool AuctionBotSeller::Initialize() case ITEM_CLASS_PROJECTILE: { if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_ITEM_MIN_REQ_LEVEL)) - if (prototype->GetBaseRequiredLevel() < value) + if (prototype->GetBaseRequiredLevel() < static_cast<int32>(value)) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_ITEM_MAX_REQ_LEVEL)) - if (prototype->GetBaseRequiredLevel() > value) + if (prototype->GetBaseRequiredLevel() > static_cast<int32>(value)) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_ITEM_MIN_SKILL_RANK)) if (prototype->GetRequiredSkillRank() < value) @@ -307,10 +307,10 @@ bool AuctionBotSeller::Initialize() if (prototype->GetSubClass() == ITEM_SUBCLASS_JUNK_MOUNT) { if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_CLASS_MISC_MOUNT_MIN_REQ_LEVEL)) - if (prototype->GetBaseRequiredLevel() < value) + if (prototype->GetBaseRequiredLevel() < static_cast<int32>(value)) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_CLASS_MISC_MOUNT_MAX_REQ_LEVEL)) - if (prototype->GetBaseRequiredLevel() > value) + if (prototype->GetBaseRequiredLevel() > static_cast<int32>(value)) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_CLASS_MISC_MOUNT_MIN_SKILL_RANK)) if (prototype->GetRequiredSkillRank() < value) @@ -334,16 +334,16 @@ bool AuctionBotSeller::Initialize() case ITEM_CLASS_GLYPH: { if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_CLASS_GLYPH_MIN_REQ_LEVEL)) - if (prototype->GetBaseRequiredLevel() < value) + if (prototype->GetBaseRequiredLevel() < static_cast<int32>(value)) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_CLASS_GLYPH_MAX_REQ_LEVEL)) - if (prototype->GetBaseRequiredLevel() > value) + if (prototype->GetBaseRequiredLevel() > static_cast<int32>(value)) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_CLASS_GLYPH_MIN_ITEM_LEVEL)) - if (prototype->GetBaseRequiredLevel() < value) + if (prototype->GetBaseRequiredLevel() < static_cast<int32>(value)) continue; if (uint32 value = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_CLASS_GLYPH_MAX_ITEM_LEVEL)) - if (prototype->GetBaseRequiredLevel() > value) + if (prototype->GetBaseRequiredLevel() > static_cast<int32>(value)) continue; break; } diff --git a/src/server/game/Entities/Item/Item.cpp b/src/server/game/Entities/Item/Item.cpp index 7fa8e9e5e6e..92d66d6808b 100644 --- a/src/server/game/Entities/Item/Item.cpp +++ b/src/server/game/Entities/Item/Item.cpp @@ -1838,8 +1838,8 @@ void BonusData::AddBonus(uint32 type, int32 const (&values)[2]) break; } case ITEM_BONUS_QUALITY: - if (Quality < values[0]) - Quality = values[0]; + if (Quality < static_cast<uint32>(values[0])) + Quality = static_cast<uint32>(values[0]); break; case ITEM_BONUS_SOCKET: { @@ -1855,8 +1855,8 @@ void BonusData::AddBonus(uint32 type, int32 const (&values)[2]) break; } case ITEM_BONUS_APPEARANCE: - if (AppearanceModID < values[0]) - AppearanceModID = values[0]; + if (AppearanceModID < static_cast<uint32>(values[0])) + AppearanceModID = static_cast<uint32>(values[0]); break; case ITEM_BONUS_REQUIRED_LEVEL: RequiredLevel += values[0]; |