Skip to content

std.posix.sendfile() fails to compile on 32-bit FreeBSD #23949

@alexrp

Description

@alexrp

For arm-freebsd.14.0-eabihf:

/home/alexrp/Source/ziglang/zig-bootstrap/out/host/lib/zig/std/posix.zig:6470:36: error: @bitCast size mismatch: destination type 'usize' has 32 bits but source type 'i64' has 64 bits
                const amt: usize = @bitCast(sbytes);
                                   ^~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-freebsdFreeBSDstandard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions