Fix %t to work with real system functions.
Fix %t to get the real value when the argument comes from a real valued system function.
This commit is contained in:
parent
c768805d9f
commit
eba5d12deb
|
|
@ -583,7 +583,8 @@ static unsigned int get_format_char(char **rtn, int ljust, int plus,
|
|||
type = vpi_get(vpiType, info->items[*idx]);
|
||||
if (((type == vpiConstant || type == vpiParameter) &&
|
||||
vpi_get(vpiConstType, info->items[*idx]) == vpiRealConst) ||
|
||||
type == vpiRealVar ) {
|
||||
type == vpiRealVar || (type == vpiSysFuncCall &&
|
||||
vpi_get(vpiFuncType, info->items[*idx]) == vpiRealFunc)) {
|
||||
value.format = vpiRealVal;
|
||||
} else {
|
||||
value.format = vpiDecStrVal;
|
||||
|
|
|
|||
Loading…
Reference in New Issue