changeset 1336:4b2b2cd865e3

Okay... Fix the assertion as well, since 20 really is enough yet it wanted MORE... Despite the message.
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Sun, 10 May 2009 17:31:56 +0200
parents 2badba544b8b
children 99ebaa4dd414
files runtime/internal/util/string.d
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/internal/util/string.d	Sun May 10 17:25:47 2009 +0200
+++ b/runtime/internal/util/string.d	Sun May 10 17:31:56 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
 {