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:
Cary R 2009-05-05 16:13:15 -07:00 committed by Stephen Williams
parent c768805d9f
commit eba5d12deb
1 changed files with 2 additions and 1 deletions

View File

@ -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;