Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile out of the box on Windows #33

Open
mkuitune opened this issue Jan 9, 2022 · 3 comments
Open

Doesn't compile out of the box on Windows #33

mkuitune opened this issue Jan 9, 2022 · 3 comments

Comments

@mkuitune
Copy link

mkuitune commented Jan 9, 2022

Platform:
Windows 10
rust 1.57.0

To reproduce:
Follow instructions on 2d sample page (git clone, cargo run).

Error:
Fairly long list of errors, each referring to mismatch between types u32 and usize in lexical-core-0.4.6. This is the first one:

error[E0308]: mismatched types
--> C:\Users\xxx.cargo\registry\src\github.com-1ecc6299db9ec823\lexical-core-0.4.6\src\atof\algorithm\bigcomp.rs:243:55
|
243 | let nlz = den.leading_zeros().wrapping_sub(wlz) & (u32::BITS - 1);
| ^^^^^^^^^^^^^^^ expected usize, found u32

@RichTeaMan
Copy link

Running cargo update -p lexical-core seems to fix it.

@zemzale
Copy link

zemzale commented Mar 9, 2022

The same issue is for macOS. The update of lexical-core indeed fixed the problem.

@Domiryuu
Copy link

Domiryuu commented Jan 5, 2023

Same error on Linux same fix, realized I should just cargo update because of how long its been since I have used rust.

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

No branches or pull requests

4 participants