# HG changeset patch # User sam # Date 1712148800 -25200 # Node ID 4abb83d6af002b342a9170c913f61a35ad619a05 # Parent 2fc5723a5635b238e3ca5ccba1d216ed8fa0a63c# Parent 9d362151c78f89d0ccae5e5d5a7a34f3959d55c3 merge diff -r 9d362151c78f -r 4abb83d6af00 semicongine/core/imagetypes.nim --- 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 =