From 2f5edebefa75381283d75adcc4260277a3945524 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 20 Aug 2021 10:19:30 +0100 Subject: [PATCH] Rename `mem.reinterpret` to `mem.reinterpret_copy` --- core/mem/mem.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/mem/mem.odin b/core/mem/mem.odin index aaea98437..4c6d33a00 100644 --- a/core/mem/mem.odin +++ b/core/mem/mem.odin @@ -245,7 +245,7 @@ context_from_allocator :: proc(a: Allocator) -> type_of(context) { return context; } -reinterpret :: proc($T: typeid, ptr: rawptr) -> (value: T) { +reinterpret_copy :: proc($T: typeid, ptr: rawptr) -> (value: T) { copy(&value, ptr, size_of(T)); return; }