-
Notifications
You must be signed in to change notification settings - Fork 20
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
auto promote to more bits #30
Comments
ahah, so i realize now that adding more bits to |
Seems like something should be done, so I'm reopening. Don't have time now, though 😄. |
The type is promoted even if there is no overflow. For example -
This happens only for arrays though -
So we could just promote the type everytime an array is summed over. |
The
@bjarthur In your example too -
Also, in the normal case with
|
sum
ing over anArray{UInt8}
automatically promotes toUInt64
to prevent overflow. yet doing so over anArray{Gray{UFixed{UInt8}}}
does not. would be nice if these behaved similarly.The text was updated successfully, but these errors were encountered: