[lua-torch-paths] 01/04: New upstream version 0~20161027-g2bc6460

Zhou Mo cdluminate-guest at moszumanska.debian.org
Wed Nov 16 07:55:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

cdluminate-guest pushed a commit to branch master
in repository lua-torch-paths.

commit b800d40ec54f752dc966db541b0a847434978552
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Wed Nov 16 07:52:54 2016 +0000

    New upstream version 0~20161027-g2bc6460
---
 paths.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/paths.c b/paths.c
index a2a0f4c..3730bf8 100644
--- a/paths.c
+++ b/paths.c
@@ -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);
         }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-paths.git



More information about the debian-science-commits mailing list