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:
Noah Brewer-Houghton 2023-08-11 10:29:51 -05:00 committed by GitHub
parent 1eb3ab9895
commit 520e8a78ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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