Skip to content

Commit a3495c4

Browse files
committed
os: Fix 64-bit Linux support.
ino_t and off_t types (d_ino and d_off fields) appear to be defined as unsigned long on Linux. TODO: Move readdir wrapper function to C, because DIRENT layout is inherently OS-specific.
1 parent 46ede27 commit a3495c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os/os/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def ilistdir_ex(path="."):
105105
if not dir:
106106
raise_error()
107107
res = []
108-
dirent_fmt = "iiHB256s"
108+
dirent_fmt = "LLHB256s"
109109
while True:
110110
dirent = readdir_(dir)
111111
if not dirent:

0 commit comments

Comments
 (0)