fix lua bit.arshift (fixes #1825)

This commit is contained in:
zeromus 2020-01-31 00:36:01 -05:00
parent 8cb19ede1c
commit 3143c38b7d
1 changed files with 2 additions and 2 deletions

View File

@ -75,9 +75,9 @@ namespace BizHawk.Client.Common
[LuaMethodExample("local inbitars = bit.arshift( -1000, 4 );")]
[LuaMethod("arshift", "Arithmetic shift right of 'val' by 'amt' bits")]
public static int Arshift(int val, int amt)
public static int Arshift(uint val, int amt)
{
return val >> amt;
return (int)val >> amt;
}
[LuaMethodExample("if ( bit.check( -12345, 35 ) ) then\r\n\tconsole.log( \"Returns result of bit 'pos' being set in 'num'\" );\r\nend;")]