diff options
author | Soumith Chintala <soumith@gmail.com> | 2016-10-28 05:43:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-28 05:43:47 +0300 |
commit | 2bc6460199cb4c2b37796060ec02edf1e646e7a6 (patch) | |
tree | f6bfc269ecd6b228e8c78a707f78be4bc7e70302 | |
parent | 68d579a2d3b1b0bb03a11637632e6e699b14ad80 (diff) | |
parent | 115c613825d88813561353c0aad3efe541c06d46 (diff) |
Merge pull request #22 from BTNC/master
fix for windows x64
-rw-r--r-- | paths.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]=='\\') && @@ -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); } |