Mercurial > projects > ldc
changeset 1338:99ebaa4dd414
Automated merge with http://hg.dsource.org/projects/ldc
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 May 2009 17:58:35 +0200 |
parents | 4b2b2cd865e3 (diff) b6e819244062 (current diff) |
children | 2e98ddd72fa7 |
files | |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/internal/genobj.d Sun May 10 17:58:09 2009 +0200 +++ b/runtime/internal/genobj.d Sun May 10 17:58:35 2009 +0200 @@ -453,7 +453,7 @@ { char[] toString() { - char [10] tmp = void; + char [20] tmp = void; return value.toString() ~ "[" ~ intToUtf8(tmp, len) ~ "]"; }
--- a/runtime/internal/util/string.d Sun May 10 17:58:09 2009 +0200 +++ b/runtime/internal/util/string.d Sun May 10 17:58:35 2009 +0200 @@ -19,7 +19,7 @@ // Returns a valid slice of the populated buffer char[] intToUtf8 (char[] tmp, size_t val) in { - assert (tmp.length > 20, "atoi buffer should be 20 or more chars wide"); + assert (tmp.length >= 20, "atoi buffer should be 20 or more chars wide"); } body {