diff options
author | 2012-08-05 13:24:33 -0700 | |
---|---|---|
committer | 2012-08-05 13:24:33 -0700 | |
commit | 84729c4dfa6d16cf81aa23c249d0ffb030549e08 (patch) | |
tree | 76e71d7c457f3a377f33dd84a5bb9a7872f5f412 /fish_indent.cpp | |
parent | 8de8877c7c0972db668b06ca5d693f622a54c97a (diff) |
Additional warnings cleanup, effective C++ violations, dead code removal
Diffstat (limited to 'fish_indent.cpp')
-rw-r--r-- | fish_indent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fish_indent.cpp b/fish_indent.cpp index 22a345b7..298d52e8 100644 --- a/fish_indent.cpp +++ b/fish_indent.cpp @@ -74,7 +74,8 @@ static void read_file( FILE *f, wcstring &b ) */ static void insert_tabs( wcstring &out, int indent ) { - out.append(indent, L'\t'); + if (indent > 0) + out.append((size_t)indent, L'\t'); } |