diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:56 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:56 +0100 |
commit | b1f5178bdabafde20eb65df6256b53dc5968b2e2 (patch) | |
tree | 1d9700cb26ffbc29f6d3d9c529d7f2292553f16d /src/skills.cc | |
parent | 450285a178d83411cb7ebce70ca2406c7e74ae18 (diff) |
Apply trivial warning cleanups
Diffstat (limited to 'src/skills.cc')
-rw-r--r-- | src/skills.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/skills.cc b/src/skills.cc index 26e1537d..37e84c57 100644 --- a/src/skills.cc +++ b/src/skills.cc @@ -792,11 +792,10 @@ static int do_cmd_activate_skill_aux() { if (s_info[i].action_mkey && s_info[i].value && ((!s_info[i].hidden) || (i == SKILL_LEARN))) { - int j; bool_ next = FALSE; /* Already got it ? */ - for (j = 0; j < p.size(); j++) + for (size_t j = 0; j < p.size(); j++) { if (s_info[i].action_mkey == std::get<1>(p[j])) { @@ -815,11 +814,10 @@ static int do_cmd_activate_skill_aux() { if (ab_info[i].action_mkey && ab_info[i].acquired) { - int j; bool_ next = FALSE; /* Already got it ? */ - for (j = 0; j < p.size(); j++) + for (size_t j = 0; j < p.size(); j++) { if (ab_info[i].action_mkey == std::get<1>(p[j])) { |