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

DEFINITE or INDEFINITE, the bits look wrong? #607

Open
AquariusPower opened this issue Jun 5, 2020 · 0 comments
Open

DEFINITE or INDEFINITE, the bits look wrong? #607

AquariusPower opened this issue Jun 5, 2020 · 0 comments
Labels

Comments

@AquariusPower
Copy link
Contributor

I was doing some conversions to bits (to add new bits like UNLABELED and NOPOSTFIX etc), and found that INDEFINITE has the DEFINITE and ARTICLE_BIT (also why both are the same?),
are they clashing?
does this looks right?

-#define ARTICLE_BIT 2
-#define DEFINITE 2
-#define INDEFINE_BIT 4
-#define INDEFINITE 6
+#define ARTICLE_BIT  0b00000010
+#define DEFINITE     0b00000010
+#define INDEFINE_BIT 0b00000100
+#define INDEFINITE   0b00000110

All code using them could be messed or I am just wrong? and... I would like to be wrong :)

@AquariusPower AquariusPower changed the title DEFINITE or INDEFINITE? the bits look wrong... DEFINITE or INDEFINITE, the bits look wrong? Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants