Procházet zdrojové kódy

Fix json marshal for maps

gingerBill před 2 roky
rodič
revize
6a4e44607c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      core/encoding/json/marshal.odin

+ 2 - 2
core/encoding/json/marshal.odin

@@ -267,8 +267,8 @@ marshal_to_writer :: proc(w: io.Writer, v: any, opt: ^Marshal_Options) -> (err:
 					continue
 				}
 
-				key   := rawptr(runtime.map_cell_index_dynamic(ks, &info.map_info.ks, bucket_index))
-				value := rawptr(runtime.map_cell_index_dynamic(vs, &info.map_info.vs, bucket_index))
+				key   := rawptr(runtime.map_cell_index_dynamic(ks, info.map_info.ks, bucket_index))
+				value := rawptr(runtime.map_cell_index_dynamic(vs, info.map_info.vs, bucket_index))
 
 				// check for string type
 				{