fix lua bit.arshift (fixes #1825)
This commit is contained in:
parent
8cb19ede1c
commit
3143c38b7d
|
@ -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;")]
|
||||
|
|
Loading…
Reference in New Issue