Showing the changes to src/vm/array.cpp (1 of 10 files). Show all
Unified · Split
| @@ -156,7 +156,7 @@ word_t vm_array_t::get_length() const · 155 unmodified lines | |||
| 156 | pointer_t vm_array_t::at(word_t index) const | 156 | pointer_t vm_array_t::at(word_t index) const |
| 157 | { | 157 | { |
| 158 | if (index < 0 || _length <= index) | 158 | if (index < 0 || _length <= index) |
| 159 | throw out_of_range_memory{ 0, _length - 1, index }; | 159 | throw index_out_of_range_memory{ 0, _length - 1, index }; |
| 160 | 160 | ||
| 161 | return reinterpret_cast<pointer_t>(_arr + (index * _element_type->size_in_bytes)); | 161 | return reinterpret_cast<pointer_t>(_arr + (index * _element_type->size_in_bytes)); |
| 162 | } | 162 | } |