diff options
Diffstat (limited to 'Shell/AST.cpp')
-rw-r--r-- | Shell/AST.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Shell/AST.cpp b/Shell/AST.cpp index 1f64d81c13..24c7ae3bef 100644 --- a/Shell/AST.cpp +++ b/Shell/AST.cpp @@ -49,7 +49,9 @@ static inline RefPtr<T> create(std::initializer_list<RefPtr<Value>> arg) static inline void print_indented(const String& str, int indent) { - dbgprintf("%.*c%s\n", indent * 2, ' ', str.characters()); + for (auto i = 0; i < indent; ++i) + dbgprintf(" "); + dbgprintf("%s\n", str.characters()); } static inline Vector<Command> join_commands(Vector<Command> left, Vector<Command> right) |