diff options
| author | Quietust | 2012-01-31 10:55:38 -0600 |
|---|---|---|
| committer | Quietust | 2012-01-31 10:55:38 -0600 |
| commit | 9afcea3debd7588e897eea21b33b8a86e9adcc4d (patch) | |
| tree | 3db1c6e2a1613eef4d8ebac243b5353e18db654b /plugins/filltraffic.cpp | |
| parent | a82f4c913803038d20b4c92e65b53f9fea9555dc (diff) | |
| download | dfhack-9afcea3debd7588e897eea21b33b8a86e9adcc4d.tar.gz dfhack-9afcea3debd7588e897eea21b33b8a86e9adcc4d.tar.bz2 dfhack-9afcea3debd7588e897eea21b33b8a86e9adcc4d.tar.xz | |
In all loops that iterate across a vector, use a size_t as the index
Diffstat (limited to 'plugins/filltraffic.cpp')
| -rw-r--r-- | plugins/filltraffic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/filltraffic.cpp b/plugins/filltraffic.cpp index 042ca0d1..7d3eac7e 100644 --- a/plugins/filltraffic.cpp +++ b/plugins/filltraffic.cpp @@ -93,7 +93,7 @@ DFhackCExport command_result filltraffic(DFHack::Core * c, std::vector<std::stri bool checkbuilding = true; //Loop through parameters - for(int i = 0; i < params.size();i++) + for(size_t i = 0; i < params.size();i++) { if (params[i] == "help" || params[i] == "?" || params[i].size() != 1) return CR_WRONG_USAGE; @@ -246,7 +246,7 @@ DFhackCExport command_result alltraffic(DFHack::Core * c, std::vector<std::strin void (*proc)(DFHack::DFCoord, MapExtras::MapCache &) = allNormal; //Loop through parameters - for(int i = 0; i < params.size();i++) + for(size_t i = 0; i < params.size();i++) { if (params[i] == "help" || params[i] == "?" || params[i].size() != 1) return CR_WRONG_USAGE; |
