# HG changeset patch # User sam # Date 1743852738 -25200 # Node ID 0972bf98c88307b8f47c6eca5fbd8c93a2c5520b # Parent cfec585882ce6a6a44fcdea13b6c844998296d9b add: something something diff -r cfec585882ce -r 0972bf98c883 semicongine/core/vector.nim --- a/semicongine/core/vector.nim Wed Apr 02 22:41:48 2025 +0700 +++ b/semicongine/core/vector.nim Sat Apr 05 18:32:18 2025 +0700 @@ -51,16 +51,16 @@ template `[]`*[T](v: TVec4[T], i: Ordinal): T = (array[4, T](v))[i] -template `[]=`*[T](v: TVec1[T], i: Ordinal, a: T) = +template `[]=`*[T](v: TVec1[T], i: Ordinal, a: SomeNumber) = (array[1, T](v))[i] = a -template `[]=`*[T](v: TVec2[T], i: Ordinal, a: T) = +template `[]=`*[T](v: TVec2[T], i: Ordinal, a: SomeNumber) = (array[2, T](v))[i] = a -template `[]=`*[T](v: TVec3[T], i: Ordinal, a: T) = +template `[]=`*[T](v: TVec3[T], i: Ordinal, a: SomeNumber) = (array[3, T](v))[i] = a -template `[]=`*[T](v: TVec4[T], i: Ordinal, a: T) = +template `[]=`*[T](v: TVec4[T], i: Ordinal, a: SomeNumber) = (array[4, T](v))[i] = a template `==`*[T](a, b: TVec1[T]): bool =