Fix GitHub issue #361 - explicit cast check on function return value.
A function call returning an enumeration value can be assigned to an
enumeration variable without an explict cast.
(cherry picked from commit bd0133b386)
This commit is contained in:
parent
fabdf42365
commit
e013745035
|
|
@ -2154,6 +2154,14 @@ ivl_variable_type_t NetEUFunc::expr_type() const
|
|||
return IVL_VT_VOID;
|
||||
}
|
||||
|
||||
const netenum_t* NetEUFunc::enumeration() const
|
||||
{
|
||||
if (result_sig_)
|
||||
return result_sig_->enumeration();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
NetUTask::NetUTask(NetScope*def)
|
||||
: task_(def)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue