Skip to content

Commit

Permalink
fix for windows x64
Browse files Browse the repository at this point in the history
  • Loading branch information
BTNC committed Oct 28, 2016
1 parent 68d579a commit 115c613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paths.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ lua_dir(lua_State *L)

SB sb;
struct _finddata_t info;
long hfind;
intptr_t hfind;
/* special cases */
lua_createtable(L, 0, 0);
if ((s[0]=='/' || s[0]=='\\') &&
Expand All @@ -611,7 +611,7 @@ lua_dir(lua_State *L)
int drive;
hfind = GetLogicalDrives();
for (drive='A'; drive<='Z'; drive++)
if (hfind & (1<<(drive-'A'))) {
if (hfind & ((intptr_t)1<<(drive-'A'))) {
lua_pushfstring(L, "%c:/", drive);
lua_rawseti(L, -2, ++k);
}
Expand Down

0 comments on commit 115c613

Please sign in to comment.