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:
Stephen Williams 2008-01-21 18:11:28 -08:00
parent b6b7d704b2
commit 3ea72109f8
1 changed files with 1 additions and 1 deletions

View File

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