changeset 1472:0972bf98c883 default tip main

add: something something
author sam <sam@basx.dev>
date Sat, 05 Apr 2025 18:32:18 +0700
parents cfec585882ce
children
files semicongine/core/vector.nim
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 =