changeset 970:4abb83d6af00

merge
author sam <sam@basx.dev>
date Wed, 03 Apr 2024 19:53:20 +0700
parents 2fc5723a5635 (diff) 9d362151c78f (current diff)
children 4ca3b53d311c
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/core/imagetypes.nim	Wed Apr 03 02:59:21 2024 -0700
+++ b/semicongine/core/imagetypes.nim	Wed Apr 03 19:53:20 2024 +0700
@@ -71,7 +71,7 @@
 
 proc asLinear*[T](image: Image[T]): Image[T] =
   result = Image[T](width: image.width, height: image.height, imagedata: newSeq[T](image.imagedata.len))
-  for i in 0 .. image.imagedata.len:
+  for i in 0 ..< image.imagedata.len:
     result.imagedata[i] = srgb2linear(image.imagedata[i])
 
 proc `$`*(image: Image): string =