mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Automated merge with http://hg.dsource.org/projects/ldc
This commit is contained in:
@@ -453,7 +453,7 @@ class TypeInfo_StaticArray : TypeInfo
|
||||
{
|
||||
char[] toString()
|
||||
{
|
||||
char [10] tmp = void;
|
||||
char [20] tmp = void;
|
||||
return value.toString() ~ "[" ~ intToUtf8(tmp, len) ~ "]";
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user