shithub: treason

Download patch

ref: 66c086c68d190935c0113735278a99b100bf07da
parent: 48e202712769741daf7806b0bbc6cd0d2fd5a50b
author: Sigrid Haflínudóttir <[email protected]>
date: Wed Sep 23 10:49:29 EDT 2020

YUV: remove useless casts

--- a/yuv.c
+++ b/yuv.c
@@ -11,12 +11,12 @@
 
 	for(y = 0; y < height-1; y += 2){
 		for(x = 0; x < width-1; x += 2){
-			cb1 = (int)*U - 0x80;
-			cr1 = (int)*V - 0x80;
+			cb1 = *U - 0x80;
+			cr1 = *V - 0x80;
 			go = 22554*cb1 + 46802*cr1;
 
 #define ONE do{ \
-			yy1 = (int)*Y * 0x10101; \
+			yy1 = *Y * 0x10101; \
 			b = yy1 + 116130*cb1; \
 			RGB[0] = (b >> 24) ? ~(b >> 31) : (b>>16); \
 			g = yy1 - go; \