Browse Source

getTimer() : inline + Int result

Nicolas Cannasse 17 years ago
parent
commit
664cf03da4
3 changed files with 3 additions and 2 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 1 1
      std/flash/Lib.hx
  3. 1 1
      std/flash9/Lib.hx

+ 1 - 0
doc/CHANGES.txt

@@ -3,6 +3,7 @@ xxxx-xx-xx: 2.02 CVS
 	php arrays are wrapped into _hx_array instances, fixes issues with references (array cast, access out of bounds ...)
 	removed untested php classes (php.DBase, php.IniHash)
 	added -D use_rtti_doc
+	flash.Lib.getTimer() now returns Int and is inlined
 
 2008-10-04: 2.01
 	fixed php.Sys

+ 1 - 1
std/flash/Lib.hx

@@ -52,7 +52,7 @@ class Lib {
 		untyped __geturl__(kind,cmd);
 	}
 
-	public static function getTimer() : Float {
+	public inline static function getTimer() : Int {
 		return untyped __gettimer__();
 	}
 

+ 1 - 1
std/flash9/Lib.hx

@@ -28,7 +28,7 @@ class Lib {
 
 	public static var current : flash.display.MovieClip;
 
-	public static function getTimer() : Float {
+	public inline static function getTimer() : Int {
 		return untyped __global__["flash.utils.getTimer"]();
 	}