From fc7961d4ccd31ab6e7eabbeb7aa22b5488924b4f Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 15 Sep 2017 21:32:50 +0200 Subject: make tests green again --- tests/vm/trgba.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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) -- cgit 1.4.1-2-gfad0