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

Add bnot for int types #1210

Merged
merged 2 commits into from
Jul 1, 2023
Merged

Add bnot for int types #1210

merged 2 commits into from
Jul 1, 2023

Conversation

primo-ppcg
Copy link
Contributor

Fixes #1208

@bakpakin bakpakin merged commit d91c95b into janet-lang:master Jul 1, 2023
@primo-ppcg primo-ppcg deleted the int-bnot branch July 1, 2023 15:25
@sogaiu
Copy link
Contributor

sogaiu commented Jul 1, 2023

Thanks!

@primo-ppcg
Copy link
Contributor Author

primo-ppcg commented Jul 1, 2023

@bakpakin a copy-paste mistake, if you could patch this:

diff --git a/src/core/inttypes.c b/src/core/inttypes.c
@@ -580,7 +580,7 @@
 DIVMETHODINVERT(uint64_t, u64, mod, %)
 OPMETHOD(uint64_t, u64, and, &)
 OPMETHOD(uint64_t, u64, or, |)
 OPMETHOD(uint64_t, u64, xor, ^)
-UNARYMETHOD(int64_t, u64, not, ~)
+UNARYMETHOD(uint64_t, u64, not, ~)
 OPMETHOD(uint64_t, u64, lshift, <<)
 OPMETHOD(uint64_t, u64, rshift, >>)

bakpakin added a commit that referenced this pull request Jul 1, 2023
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

Successfully merging this pull request may close these issues.

int/*64 does not support complement / not
3 participants