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/flows.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/flows.cpp')
| -rw-r--r-- | plugins/flows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/flows.cpp b/plugins/flows.cpp index 163152a1..6827ba18 100644 --- a/plugins/flows.cpp +++ b/plugins/flows.cpp @@ -24,7 +24,7 @@ DFhackCExport command_result df_flows (Core * c, vector <string> & parameters) int flow1 = 0, flow2 = 0, flowboth = 0, water = 0, magma = 0; c->con.print("Counting flows and liquids ...\n"); - for (int i = 0; i < world->map.map_blocks.size(); i++) + for (size_t i = 0; i < world->map.map_blocks.size(); i++) { df::map_block *cur = world->map.map_blocks[i]; if (cur->flags.is_set(block_flags::UpdateLiquid)) |
