Skip to content

Commit

Permalink
cast to get rid of warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Berg-Mohnicke committed May 29, 2024
1 parent b1ff2b0 commit 2ef9a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/monica-parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ Errors CropModuleParameters::merge(json11::Json j) {
set_bool_value(pc_AdjustRootDepthForSoilProps, j, "AdjustRootDepthForSoilProps");
if (j["TimeUnderAnoxiaThreshold"].is_number()) {
std::fill(pc_TimeUnderAnoxiaThreshold.begin(), pc_TimeUnderAnoxiaThreshold.end(),
j["TimeUnderAnoxiaThreshold"].number_value());
int(j["TimeUnderAnoxiaThreshold"].number_value()));
} else if(j["TimeUnderAnoxiaThreshold"].is_array()) {
set_int_vector(pc_TimeUnderAnoxiaThreshold, j, "TimeUnderAnoxiaThreshold");
}
Expand Down

0 comments on commit 2ef9a59

Please sign in to comment.