You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixes a bug in the method that computes C padding. (#1308)
For some reason the code assumes that `x mod m` is multitude of
`m` and raises an exception when it doesn't happen (quite often in
fact).
The code is called when a structure size is computed. The main caveat
here is that
1) this method has incorrect type as it constrains the padding size to
be in the set of `8,16,32,64,128,256` but real padding may have any
number of bits (it is their sum that should in this range).
2) this method shouldn't exist at all as the padding is fully defined
by the alignment of the field and there is no need to override it.
Therefore, the solution is to deprecated this method and compute
padding using the alignment information only. The method is no longer
used and any code that overrode it will get a warning.
0 commit comments