From: Leandro Lucarella Date: Sat, 19 Sep 2009 20:57:01 +0000 (-0300) Subject: rnd_data_2.d: Fix out of bounds error X-Git-Url: https://git.llucax.com/software/dgc/dgcbench.git/commitdiff_plain/38d9687fb5eff048aa20e7e6b8eed49b20ed1284 rnd_data_2.d: Fix out of bounds error --- 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;