From 38d9687fb5eff048aa20e7e6b8eed49b20ed1284 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 19 Sep 2009 17:57:01 -0300 Subject: [PATCH] rnd_data_2.d: Fix out of bounds error --- micro/rnd_data_2.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micro/rnd_data_2.d b/micro/rnd_data_2.d index 1cd89bf..545d588 100644 --- a/micro/rnd_data_2.d +++ b/micro/rnd_data_2.d @@ -29,7 +29,7 @@ int main(char[][] args) } int zig = i; - if (zig > stuff.length) + if (zig >= stuff.length) zig = rand.uniform!(int) % stuff.length; stuff[zig] = arr; -- 2.43.0