Skip to content
Permalink
Browse files

x64 warnings.

  • Loading branch information...
shmuz committed Jan 28, 2015
1 parent 7af4a78 commit ec8186c837fd6d3e2d6121baaa34b15c16114a8a
@@ -1,4 +1,8 @@
shmuel 28.01.2015 19:19:30 +0200 - build 478
shmuel 28.01.2015 22:30:52 +0200 - build 479

1. LuaFAR: x64 warnings.

shmuel 28.01.2015 19:19:30 +0200 - build 478

1. LuaFAR: добавлена функция win.system.

@@ -119,21 +119,21 @@ static int bnot(lua_State *L)
static int lshift(lua_State *L)
{
UINT64 v = check64(L, 1, NULL);
unsigned int n = luaL_checkinteger(L, 2);
unsigned int n = luaL_checkint(L, 2);
return bit64_push(L, v << n);
}

static int rshift(lua_State *L)
{
UINT64 v = check64(L, 1, NULL);
unsigned int n = luaL_checkinteger(L, 2);
unsigned int n = luaL_checkint(L, 2);
return bit64_push(L, v >> n);
}

static int arshift(lua_State *L)
{
INT64 v = check64(L, 1, NULL);
unsigned int n = luaL_checkinteger(L, 2);
unsigned int n = luaL_checkint(L, 2);
return bit64_push(L, v >> n);
}

@@ -1403,9 +1403,9 @@ intptr_t LF_GetContentFields(lua_State* L, const struct GetContentFieldsInfo *In
{
if(GetExportFunction(L, "GetContentFields")) //+1: Func
{
size_t i;
lua_createtable(L, Info->Count, 0); //+2
for (i=0; i<Info->Count; i++)
int i;
lua_createtable(L, (int)Info->Count, 0); //+2
for (i=0; i<(int)Info->Count; i++)
PutWStrToArray(L, i+1, Info->Names[i], -1);

if(pcall_msg(L, 1, 1) == 0) //+1
@@ -1422,17 +1422,17 @@ intptr_t LF_GetContentData(lua_State* L, struct GetContentDataInfo *Info)
{
if(GetExportFunction(L, "GetContentData")) //+1: Func
{
size_t i;
int i;
push_utf8_string(L, Info->FilePath, -1); //+2
lua_createtable(L, Info->Count, 0); //+3
for (i=0; i<Info->Count; i++)
lua_createtable(L, (int)Info->Count, 0); //+3
for (i=0; i<(int)Info->Count; i++)
PutWStrToArray(L, i+1, Info->Names[i], -1);

if(pcall_msg(L, 2, 1) == 0) //+1
{
if(lua_istable(L, -1))
{
for (i=0; i<Info->Count; i++)
for (i=0; i<(int)Info->Count; i++)
{
lua_rawgeti(L, -1, i+1);
if (lua_type(L, -1) == LUA_TSTRING)
@@ -1,6 +1,6 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 478
#define PLUGIN_BUILD 479
#define PLUGIN_DESC "Lua Macros for Far Manager"
#define PLUGIN_NAME "LuaMacro"
#define PLUGIN_FILENAME "luamacro.dll"

0 comments on commit ec8186c

Please sign in to comment.
You can’t perform that action at this time.