Showing the changes to src/include (1 of 5 files). Show all
Unified · Split
| @@ -107,7 +107,7 @@ namespace disvm · 106 unmodified lines | |||
| 107 | { | 107 | { |
| 108 | auto alloc_inst = vm_alloc_t::from_allocation(allocation); | 108 | auto alloc_inst = vm_alloc_t::from_allocation(allocation); |
| 109 | assert(alloc_inst == nullptr || alloc_inst->alloc_type == intrinsic_type_desc::type<T>()); | 109 | assert(alloc_inst == nullptr || alloc_inst->alloc_type == intrinsic_type_desc::type<T>()); |
| 110 | return dynamic_cast<T *>(alloc_inst); | 110 | return static_cast<T *>(alloc_inst); |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | protected: | 113 | protected: |
| @@ -199,9 +199,9 @@ namespace disvm · 85 unmodified lines | |||
| 199 | static std::shared_ptr<const type_descriptor_t> type_desc(); | 199 | static std::shared_ptr<const type_descriptor_t> type_desc(); |
| 200 | 200 | ||
| 201 | public: | 201 | public: |
| 202 | vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t count); | 202 | vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t length); |
| 203 | vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t count, const zero_memory_t&); | 203 | vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t length, const zero_memory_t&); |
| 204 | vm_array_t(vm_array_t *original, word_t begin_index, word_t count); | 204 | vm_array_t(vm_array_t *original, word_t begin_index, word_t length); |
| 205 | vm_array_t(const vm_string_t *s); | 205 | vm_array_t(const vm_string_t *s); |
| 206 | ~vm_array_t(); | 206 | ~vm_array_t(); |
| 207 | 207 | ||