Browse Source

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

Aleksandr Kuzmenko 6 years ago
parent
commit
701190101a
1 changed files with 2 additions and 2 deletions
  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;
 
 
-	extern inline function get_sizeBits() {
+	extern inline function get_sizeBits():Int {
 		return untyped $bytes_sizebits(this);
 	}
 
-	extern inline function get_nullValue() {
+	extern inline function get_nullValue():T {
 		return untyped $bytes_nullvalue(this);
 	}