Explorar o código

Fix cast to uintptr

gingerBill %!s(int64=8) %!d(string=hai) anos
pai
achega
bbddbba340
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/_preload.odin

+ 1 - 1
core/_preload.odin

@@ -451,7 +451,7 @@ __get_map_header :: proc "contextless" (m: ^$T/map[$K]$V) -> __Map_Header {
 	header.is_key_string = is_string;
 	header.entry_size    = int(size_of(Entry));
 	header.entry_align   = int(align_of(Entry));
-	header.value_offset  = int(offset_of(Entry, value));
+	header.value_offset  = uintptr(offset_of(Entry, value));
 	header.value_size    = int(size_of(V));
 	return header;
 }