浏览代码

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

Aleksandr Kuzmenko 6 年之前
父节点
当前提交
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;
 
 
-	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);
 	}