Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

MemoryMap error on windows #14

Open
shellchocolat opened this issue Oct 7, 2020 · 0 comments
Open

MemoryMap error on windows #14

shellchocolat opened this issue Oct 7, 2020 · 0 comments

Comments

@shellchocolat
Copy link

shellchocolat commented Oct 7, 2020

I cross compile a win_x86_64 and get an error on MemoryMap::new():

error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /home/shellchocolat/.cargo/registry/src/github.com-1ecc6299db9ec823/mmap-0.1.1/src/lib.rs:324:26
    |
134 |     ErrVirtualAlloc(i32),
    |     -------------------- defined here
...
324 |                 0 => Err(ErrVirtualAlloc()),
    |                          ^^^^^^^^^^^^^^^-- supplied 0 arguments
    |                          |
    |                          expected 1 argument

So i think something is missing into the error handling.

Maybe you should:

324 |             0 => Err(ErrVirtualAlloc(errno())),

Could you take a look?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant