History

Address various performance issues discovered while profiling debugger Fix logical errors in bit shifting bytecodes Add assert for bit shifting issues that may arise on other compilers Fix bug in vm_array assert

arr committed 10 years ago

Commit d8c9a331 parent 42194725 files · +39 −25Browse files

Showing the changes to src/vm/module_reader.cpp (1 of 5 files). Show all

Unified · Split

src/vm/module_reader.cpp+1−1
@@ -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);