diff options
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/bufreader.nim | 4 | ||||
-rw-r--r-- | src/io/bufwriter.nim | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/io/bufreader.nim b/src/io/bufreader.nim index 3ee36208..f25309e2 100644 --- a/src/io/bufreader.nim +++ b/src/io/bufreader.nim @@ -54,7 +54,7 @@ proc sread*(reader: var BufferedReader; part: var FormDataEntry) proc sread*(reader: var BufferedReader; blob: var Blob) proc sread*[T](reader: var BufferedReader; o: var Option[T]) proc sread*[T, E](reader: var BufferedReader; o: var Result[T, E]) -proc sread*(reader: var BufferedReader; c: var RGBAColor) {.inline.} +proc sread*(reader: var BufferedReader; c: var ARGBColor) {.inline.} proc readData(reader: var BufferedReader; buffer: pointer; len: int) = assert reader.bufIdx + len <= reader.buffer.len @@ -201,5 +201,5 @@ proc sread*[T, E](reader: var BufferedReader; o: var Result[T, E]) = else: o.err() -proc sread*(reader: var BufferedReader; c: var RGBAColor) = +proc sread*(reader: var BufferedReader; c: var ARGBColor) = reader.sread(uint32(c)) diff --git a/src/io/bufwriter.nim b/src/io/bufwriter.nim index 0957d3e8..509f2907 100644 --- a/src/io/bufwriter.nim +++ b/src/io/bufwriter.nim @@ -77,7 +77,7 @@ proc swrite*(writer: var BufferedWriter; part: FormDataEntry) proc swrite*(writer: var BufferedWriter; blob: Blob) proc swrite*[T](writer: var BufferedWriter; o: Option[T]) proc swrite*[T, E](writer: var BufferedWriter; o: Result[T, E]) -proc swrite*(writer: var BufferedWriter; c: RGBAColor) {.inline.} +proc swrite*(writer: var BufferedWriter; c: ARGBColor) {.inline.} proc writeData(writer: var BufferedWriter; buffer: pointer; len: int) = let targetLen = writer.bufLen + len @@ -183,5 +183,5 @@ proc swrite*[T, E](writer: var BufferedWriter; o: Result[T, E]) = when not (E is void): writer.swrite(o.error) -proc swrite*(writer: var BufferedWriter; c: RGBAColor) = +proc swrite*(writer: var BufferedWriter; c: ARGBColor) = writer.swrite(uint32(c)) |