Skip to content

Allocation offset should be usize #674

@qinsoon

Description

@qinsoon

We have the offset type as isize:

fn alloc(&mut self, size: usize, align: usize, offset: isize) -> Address;

However, in here, we specifically require offset to be positive:

debug_assert!(offset >= 0);

We should change the type of offset to usize instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-allocatorArea: AllocatorC-bugCategory: BugF-good-first-issueCall For Participation: Suitable issues for first-time contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions