changeset 1474:bb7bbe2fee78 default tip

merge
author sam <sam@basx.dev>
date Sun, 06 Apr 2025 21:56:10 +0700
parents 2cc8103a7418 (current diff) 0972bf98c883 (diff)
children
files semicongine/core/vector.nim
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/core/vector.nim	Sun Apr 06 21:55:22 2025 +0700
+++ b/semicongine/core/vector.nim	Sun Apr 06 21:56:10 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 =