diff options
author | Araq <rumpf_a@web.de> | 2014-08-31 15:25:54 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-31 15:25:54 +0200 |
commit | 93eb9c456d4195e4296b0f91d27ba0c3e3ab3f33 (patch) | |
tree | b81273414b1b4be68fcf191efda403b4b2c82282 /tests/vm | |
parent | de29ce8ca84d5cbed173abc1324138fc263c4b42 (diff) | |
download | Nim-93eb9c456d4195e4296b0f91d27ba0c3e3ab3f33.tar.gz |
more stdlib modules work
Diffstat (limited to 'tests/vm')
-rw-r--r-- | tests/vm/trgba.nim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/vm/trgba.nim b/tests/vm/trgba.nim index b1d94702f..22eec4d6e 100644 --- a/tests/vm/trgba.nim +++ b/tests/vm/trgba.nim @@ -6,20 +6,20 @@ discard """ #bug #1009 type - TAggRgba8* = array[4, Byte] + TAggRgba8* = array[4, byte] -template R*(self: TAggRgba8): Byte = self[0] -template G*(self: TAggRgba8): Byte = self[1] -template B*(self: TAggRgba8): Byte = self[2] -template A*(self: TAggRgba8): Byte = self[3] +template R*(self: TAggRgba8): byte = self[0] +template G*(self: TAggRgba8): byte = self[1] +template B*(self: TAggRgba8): byte = self[2] +template A*(self: TAggRgba8): byte = self[3] -template `R=`*(self: TAggRgba8, val: Byte) = +template `R=`*(self: TAggRgba8, val: byte) = self[0] = val -template `G=`*(self: TAggRgba8, val: Byte) = +template `G=`*(self: TAggRgba8, val: byte) = self[1] = val -template `B=`*(self: TAggRgba8, val: Byte) = +template `B=`*(self: TAggRgba8, val: byte) = self[2] = val -template `A=`*(self: TAggRgba8, val: Byte) = +template `A=`*(self: TAggRgba8, val: byte) = self[3] = val proc ABGR* (val: int| int64): TAggRgba8 = |