From 3fb2cb032205854495277e8a0f0aeecffc860b54 Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Sun, 10 May 2009 17:31:56 +0200 Subject: [PATCH] Okay... Fix the assertion as well, since 20 really is enough yet it wanted MORE... Despite the message. --- runtime/internal/util/string.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/internal/util/string.d b/runtime/internal/util/string.d index e4bd4660..776f7ed5 100644 --- a/runtime/internal/util/string.d +++ b/runtime/internal/util/string.d @@ -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 {