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) {...@@ -28,7 +28,7 @@ pub const Value = union(enum) {
28 const TI = @typeInfo(TO);28 const TI = @typeInfo(TO);
29 if (TI == .Int or TI == .ComptimeInt) {29 if (TI == .Int or TI == .ComptimeInt) {
30 if (self == .Array) {30 if (self == .Array) {
31 return self.Array[i];31 return self.Array[query];
32 }32 }
33 }33 }
34 return self.fetch_inner(query, 0);34 return self.fetch_inner(query, 0);