commit ec80c04c04b35db560ec34e7985d8b9c6481cca6
parent ec29d4cda83903ca4947799ee8cb91ed1f9dd519
Author: Michael Savage <mikejsavage@gmail.com>
Date: Sat, 14 Feb 2015 13:55:26 +0000
Lua 5.3 compatibility
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -75,7 +75,7 @@ static int luaarc4_random( lua_State * const L ) {
}
static int luaarc4_buf( lua_State * const L ) {
- const long bytes = luaL_checklong( L, 1 );
+ const long bytes = luaL_checkinteger( L, 1 );
char * const buf = malloc( bytes );
if( buf == NULL ) {