Skip to content

Commit

Permalink
Wrong array size error message updated #170
Browse files Browse the repository at this point in the history
  • Loading branch information
ETatuzova authored and makxenov committed Jan 5, 2024
1 parent c4f32b3 commit 3721cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nil/blueprint/input_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ namespace nil {
ASSERT(value.size() == 1 && value.contains("array"));
ASSERT(value.at("array").is_array());
auto &arr = value.at("array").as_array();
ASSERT(array_type->getNumElements() == arr.size());
ASSERT_MSG(array_type->getNumElements() == arr.size(), (std::to_string(array_type->getNumElements()) + " != " + std::to_string(arr.size())).c_str());
for (size_t i = 0; i < array_type->getNumElements(); ++i) {
ptr = dispatch_type(array_type->getElementType(), arr[i], ptr, is_private);
}
Expand Down

0 comments on commit 3721cfe

Please sign in to comment.