mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 21:27:54 +00:00
Fixed an issue where MonteVarCalculated variables of data type int were not passed correctly to child processes (#1546) (#1547)
Co-authored-by: Noah Brewer-Houghton <Noah.A.Brewer-Houghton@nasa.gov>
This commit is contained in:
parent
1eb3ab9895
commit
520e8a78ff
@ -44,6 +44,9 @@ std::string Trick::MonteVarCalculated::get_next_value() {
|
||||
break;
|
||||
case TRICK_INTEGER:
|
||||
case TRICK_UNSIGNED_INTEGER:
|
||||
snprintf(buffer, sizeof(buffer), "%d", *(int *)ref2->address);
|
||||
value = buffer;
|
||||
break;
|
||||
case TRICK_LONG:
|
||||
case TRICK_UNSIGNED_LONG:
|
||||
snprintf(buffer, sizeof(buffer), "%ld", *(long *)ref2->address);
|
||||
|
Loading…
Reference in New Issue
Block a user