Skip to content

Commit

Permalink
Fix warnings on printf'ing size_t as %d
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Sep 7, 2012
1 parent e8a9443 commit 627be84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ItemStorage.cpp
Expand Up @@ -58,7 +58,7 @@ void ItemStorage::setItems(string s) {
storage[i].quantity = 0;
}
else if ((unsigned)storage[i].item > items->items.size()-1) {
fprintf(stderr, "Item id (%d) out of bounds 1-%d, skipping\n", storage[i].item, items->items.size());
fprintf(stderr, "Item id (%d) out of bounds 1-%d, skipping\n", storage[i].item, (int)items->items.size());
storage[i].item = 0;
storage[i].quantity = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/SaveLoad.cpp
Expand Up @@ -262,7 +262,7 @@ void GameStatePlay::loadGame() {
hotkeys[i] = 0;
}
else if ((unsigned)hotkeys[i] > powers->powers.size()-1) {
fprintf(stderr, "Hotkey power id (%d) out of bounds 1-%d, skipping\n", hotkeys[i], powers->powers.size());
fprintf(stderr, "Hotkey power id (%d) out of bounds 1-%d, skipping\n", hotkeys[i], (int)powers->powers.size());
hotkeys[i] = 0;
}
else if (hotkeys[i] != 0 && powers->powers[hotkeys[i]].name == "") {
Expand Down

0 comments on commit 627be84

Please sign in to comment.