authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2021-09-07 01:27:55 -07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-09-07 01:27:55 -07:00
log41a4656180a7a460598a53061c07adfbf174c1f4
tree1c7a92bc99876e5d61ce67e26be7adc66e6d87da
parentb7c42514db96ad9cb6d57c792499b5f92d516fa1
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

use proper index variable for number `get` calls, fixes #3


1 files changed, 1 insertions(+), 1 deletions(-)

src/lib.zig+1-1
......@@ -28,7 +28,7 @@ pub const Value = union(enum) {
2828 const TI = @typeInfo(TO);
2929 if (TI == .Int or TI == .ComptimeInt) {
3030 if (self == .Array) {
31 return self.Array[i];
31 return self.Array[query];
3232 }
3333 }
3434 return self.fetch_inner(query, 0);