- J.R. Blain: patch to fix some warnings

This commit is contained in:
Justin Zaun 2003-11-21 03:30:51 +00:00
parent bc30201161
commit 93a8686ffe
2 changed files with 2 additions and 2 deletions

View file

@ -200,7 +200,7 @@ std::vector<gamemap::location> multiple_locs(const config& cfg)
const std::vector<std::string> xvals = config::split(cfg["x"]);
const std::vector<std::string> yvals = config::split(cfg["y"]);
for(int i = 0; i != minimum(xvals.size(),yvals.size()); ++i) {
for(unsigned int i = 0; i != minimum(xvals.size(),yvals.size()); ++i) {
const std::pair<int,int> xrange = parse_range(xvals[i]);
const std::pair<int,int> yrange = parse_range(yvals[i]);
std::cerr << "range: " << xrange.first << "-" << xrange.second << "\n";

View file

@ -647,7 +647,7 @@ int show_dialog(display& disp, SDL_Surface* image,
}
}
for(int n = 0; n != check_buttons.size(); ++n) {
for(unsigned int n = 0; n != check_buttons.size(); ++n) {
check_buttons[n].process(mousex,mousey,left_button);
check_buttons[n].draw();
(*options)[n].checked = check_buttons[n].checked();