2
0
Эх сурвалжийг харах

[std] hl.CArray fix unbound type parameter on unsafeSet (#12280)

Yuxiao Mao 1 сар өмнө
parent
commit
8a5ddf5558
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      std/hl/CArray.hx

+ 1 - 1
std/hl/CArray.hx

@@ -9,7 +9,7 @@ abstract CArray<T>(Abstract<"hl_carray">) {
 
 	@:arrayAccess inline function get( index : Int ) : T return untyped this[index];
 
-	public inline function unsafeSet( index : Int, v : T ) return untyped this[index] = v;
+	public inline function unsafeSet( index : Int, v : T ) : T return untyped this[index] = v;
 
 	public static inline function alloc<T>( cl : Class<T>, size : Int ) : CArray<T> {
 		return cast alloc_carray( (cast cl:BaseType).__type__ , size );