Просмотр исходного кода

fix types of getters in hl.BytesAccess (fixes #8348)

Aleksandr Kuzmenko 6 лет назад
Родитель
Сommit
701190101a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      std/hl/BytesAccess.hx

+ 2 - 2
std/hl/BytesAccess.hx

@@ -27,11 +27,11 @@ package hl;
 	public var nullValue(get, never) : T;
 	public var nullValue(get, never) : T;
 
 
 
 
-	extern inline function get_sizeBits() {
+	extern inline function get_sizeBits():Int {
 		return untyped $bytes_sizebits(this);
 		return untyped $bytes_sizebits(this);
 	}
 	}
 
 
-	extern inline function get_nullValue() {
+	extern inline function get_nullValue():T {
 		return untyped $bytes_nullvalue(this);
 		return untyped $bytes_nullvalue(this);
 	}
 	}