-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
bit shift operators take odd types #1570
Copy link
Copy link
Closed
Labels
A-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
It doesn't make much sense to me that in the expression
x >> y(resp.x << y) bothxandyhave to be the same types. After all, it's not like a u32 value as 2^32 bits!I think
yshould always beu8(or perhapsuintif we want to be nice, much as we allow int in array lookups). Actually, doesx >> -3do something sensible, or is-3just treated as a real big unsigned value?