aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_indent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fish_indent.cpp')
-rw-r--r--fish_indent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish_indent.cpp b/fish_indent.cpp
index e4659081..68ed580c 100644
--- a/fish_indent.cpp
+++ b/fish_indent.cpp
@@ -142,7 +142,7 @@ static wcstring prettify(const wcstring &src, bool do_indent)
/* We may have a forest of disconnected trees on a parse failure. We have to handle all nodes that have no parent, and all parse errors. */
bool has_new_line = true;
wcstring result;
- for (size_t i=0; i < tree.size(); i++)
+ for (node_offset_t i=0; i < tree.size(); i++)
{
const parse_node_t &node = tree.at(i);
if (node.parent == NODE_OFFSET_INVALID || node.type == parse_special_type_parse_error)