diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-09-15 21:32:50 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-09-15 21:32:50 +0200 |
commit | fc7961d4ccd31ab6e7eabbeb7aa22b5488924b4f (patch) | |
tree | fdf11fa180733a15675b5caee26b9ff0114c995a /tests | |
parent | ecf1424456bd95167ac0e1e721307032e22d172f (diff) | |
download | Nim-fc7961d4ccd31ab6e7eabbeb7aa22b5488924b4f.tar.gz |
make tests green again
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vm/trgba.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/vm/trgba.nim b/tests/vm/trgba.nim index da1a2d0c5..a270df267 100644 --- a/tests/vm/trgba.nim +++ b/tests/vm/trgba.nim @@ -24,12 +24,12 @@ template `A=`*(self: TAggRgba8, val: byte) = proc ABGR* (val: int| int64): TAggRgba8 = var V = val - result.R = V and 0xFF + result.R = byte(V and 0xFF) V = V shr 8 - result.G = V and 0xFF + result.G = byte(V and 0xFF) V = V shr 8 - result.B = V and 0xFF - result.A = (V shr 8) and 0xFF + result.B = byte(V and 0xFF) + result.A = byte((V shr 8) and 0xFF) const c1 = ABGR(0xFF007F7F) |