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
The unmarshaling of bitmask enum seems to be incomplete: for example in the case of common.POSITION_TARGET_TYPEMASK
// UnmarshalText implements the encoding.TextUnmarshaler interface.
func (e *POSITION_TARGET_TYPEMASK) UnmarshalText(text []byte) error {
labels := strings.Split(string(text), " | ")
var mask POSITION_TARGET_TYPEMASK
for _, label := range labels {
if value, ok := values_POSITION_TARGET_TYPEMASK[label]; ok {
mask |= value
} else if value, err := strconv.Atoi(label); err == nil {
mask |= POSITION_TARGET_TYPEMASK(value)
} else {
return fmt.Errorf("invalid label '%s'", label)
}
}
//missing statement here:
// *e=mask
return nil
}
the statement *e=mask before return nil is missing. Without this statement there is no conversion from string. The correction should be reported in conversion.go.
The text was updated successfully, but these errors were encountered:
This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.
The unmarshaling of bitmask enum seems to be incomplete: for example in the case of
common.POSITION_TARGET_TYPEMASK
the statement
*e=mask
beforereturn nil
is missing. Without this statement there is no conversion from string. The correction should be reported inconversion.go
.The text was updated successfully, but these errors were encountered: