Read and include sign of scanned decimal.
Fix simple bug where negative values read from the source file were not getting their sign. The fix was proposed in pr1876738.
This commit is contained in:
parent
b6b7d704b2
commit
3ea72109f8
|
|
@ -398,7 +398,7 @@ static int scan_format(vpiHandle sys, struct byte_source*src, vpiHandle argv)
|
|||
assert(item);
|
||||
|
||||
val.format = vpiIntVal;
|
||||
val.value.integer = value;
|
||||
val.value.integer = value * sign_flag;
|
||||
vpi_put_value(item, &val, 0, vpiNoDelay);
|
||||
rc += 1;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue