Showing the changes to src/vm/module_reader.cpp (1 of 5 files). Show all
Unified · Split
| @@ -431,7 +431,7 @@ namespace · 430 unmodified lines | |||
| 431 | if (str_bytes != count) | 431 | if (str_bytes != count) |
| 432 | throw module_reader_exception{ "Failed to read string data" }; | 432 | throw module_reader_exception{ "Failed to read string data" }; |
| 433 | 433 | ||
| 434 | auto new_string = new vm_string_t(str_buffer.size(), str_buffer.data()); | 434 | auto new_string = new vm_string_t{ str_buffer.size(), str_buffer.data() }; |
| 435 | *reinterpret_cast<pointer_t *>(data_dest) = new_string->get_allocation(); | 435 | *reinterpret_cast<pointer_t *>(data_dest) = new_string->get_allocation(); |
| 436 | break; | 436 | break; |
| 437 | } | 437 | } |