diff options
Diffstat (limited to 'boil/library/TypeFactory.java')
-rw-r--r-- | boil/library/TypeFactory.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/boil/library/TypeFactory.java b/boil/library/TypeFactory.java index 8c64101..93966f0 100644 --- a/boil/library/TypeFactory.java +++ b/boil/library/TypeFactory.java @@ -32,11 +32,13 @@ public class TypeFactory { * list of the x most recent entries. */ String rtn = ""; - rtn += String.format("t.%d", - type_num-x); - for (int i = type_num-(x-1); i < type_num; ++i) { - rtn += String.format(" t.%d", - i); + if (x > 0) { + rtn += String.format("t.%d", + type_num-x); + for (int i = type_num-(x-1); i < type_num; ++i) { + rtn += String.format(" t.%d", + i); + } } return rtn; |