Skip to content

refactor: baselineUsed type byte -> qboolean - #415

Open
WofWca wants to merge 1 commit into
ec-:mainfrom
WofWca:baselineUsed-qboolean
Open

refactor: baselineUsed type byte -> qboolean#415
WofWca wants to merge 1 commit into
ec-:mainfrom
WofWca:baselineUsed-qboolean

Conversation

@WofWca

@WofWca WofWca commented Jul 10, 2026

Copy link
Copy Markdown

qboolean is a more "narrow" type, makes it clear that e.g.
there is no difference between 1 and 255.

`qboolean` is a more "narrow" type, makes it clear that e.g.
there is no difference between `1` and `255`.
@ensiform

Copy link
Copy Markdown
Contributor

Technically this increase size of the struct because sizeof qboolean would be size of int iirc compared to sizeof byte.

@WofWca

WofWca commented Jul 10, 2026

Copy link
Copy Markdown
Author

Yes, I thought of that. But that would probably increase performance then (dealing with full ints is easier than dealing with bytes). The compiler probably knows what it's doing. If not, then I don't think that it's a big deal anyway.

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.

2 participants