-
Notifications
You must be signed in to change notification settings - Fork 304
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
double negative for i64 min value with i64 suffix #553
Comments
Hmm, what version are you testing with? For the first example I get the following on master: static const int64_t value = -9223372036854775808ULL; Which seems about right. |
I've tried force update cbindgen before test, cbindgen -v shows 0.14.3 |
Hmmm. This was intended to be fixed in #490 which is in that release... Can you check in master anyhow and confirm it's fixed there? |
checkout master, cargo build and copy binary to ~/.cargo/bin, rebuild my header , still gives incorrect result. maybe different dependencies? my rust toolchain rustc 1.45.0 (5c1f21c3b 2020-07-13) my cbindgen cargo tree
|
my bad, although I've install latest cbindgen to path, but my Cargo.lock still points to older version. latest version have no such problem |
Great, thanks for checking! |
gives incorrect result
but following is OK
another confusing problem I've found is that
didn't work, maybe cbindgen work at lexcial level so it can not handle such situation ? It will be helpful if docs mention this.
The text was updated successfully, but these errors were encountered: