From 5dd52de43a8c9f846b97b98e07641f3dff8aed4b Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 7 Jul 2022 09:44:30 +0300 Subject: [PATCH] Fix movies artifacts Left rotation in opcode 15 didn't work because value1 and value2 were signed. --- src/movie_lib.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/movie_lib.cc b/src/movie_lib.cc index 037d795..ccaa6aa 100644 --- a/src/movie_lib.cc +++ b/src/movie_lib.cc @@ -1937,8 +1937,8 @@ static void _nfPkDecomp(unsigned char* a1, unsigned char* a2, int a3, int a4, in int v11; int v13; int byte; - int value1; - int value2; + unsigned int value1; + unsigned int value2; int var_10; unsigned char map1[512]; unsigned int map2[256];