Skip to content

Commit 2d7a66b

Browse files
authored
Merge pull request #3077 from jam1garner/compilation-32bit
Fix compilation on unix platforms with i32 c_long
2 parents 27e953f + 39d3e32 commit 2d7a66b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/stdlib/os.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,7 @@ mod _os {
19121912
path: PathOrFd,
19131913
ConfName(name): ConfName,
19141914
vm: &VirtualMachine,
1915-
) -> PyResult<Option<i64>> {
1915+
) -> PyResult<Option<libc::c_long>> {
19161916
use nix::errno::{self, Errno};
19171917

19181918
Errno::clear();
@@ -1938,7 +1938,7 @@ mod _os {
19381938

19391939
#[cfg(unix)]
19401940
#[pyfunction]
1941-
fn fpathconf(fd: i32, name: ConfName, vm: &VirtualMachine) -> PyResult<Option<i64>> {
1941+
fn fpathconf(fd: i32, name: ConfName, vm: &VirtualMachine) -> PyResult<Option<libc::c_long>> {
19421942
pathconf(PathOrFd::Fd(fd), name, vm)
19431943
}
19441944

0 commit comments

Comments
 (0)