Showing the changes to src/vm/module_reader.cpp (1 of 5 files). Show all
Unified · Split
| @@ -481,7 +481,7 @@ namespace · 480 unmodified lines | |||
| 481 | if (arr_maybe->alloc_type != vm_array_t::type_desc()) | 481 | if (arr_maybe->alloc_type != vm_array_t::type_desc()) |
| 482 | throw module_reader_exception{ "Data index not an array type" }; | 482 | throw module_reader_exception{ "Data index not an array type" }; |
| 483 | 483 | ||
| 484 | auto arr = dynamic_cast<vm_array_t *>(arr_maybe); | 484 | auto arr = static_cast<vm_array_t *>(arr_maybe); |
| 485 | 485 | ||
| 486 | auto array_index = word_t{}; | 486 | auto array_index = word_t{}; |
| 487 | std::tie(success, array_index) = read_next_word(reader); | 487 | std::tie(success, array_index) = read_next_word(reader); |