This commit is contained in:
Christian Kamm
2009-05-10 17:58:35 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -453,7 +453,7 @@ class TypeInfo_StaticArray : TypeInfo
{
char[] toString()
{
char [10] tmp = void;
char [20] tmp = void;
return value.toString() ~ "[" ~ intToUtf8(tmp, len) ~ "]";
}

View File

@@ -19,7 +19,7 @@ private import tango.stdc.string;
// 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
{