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

Host.ip is now Int instead of Int32

Nicolas Cannasse 13 лет назад
Родитель
Сommit
db538c6415
4 измененных файлов с 6 добавлено и 6 удалено
  1. 1 1
      std/cpp/_std/sys/net/Host.hx
  2. 1 1
      std/neko/_std/sys/net/Host.hx
  3. 3 3
      std/php/_std/sys/net/Host.hx
  4. 1 1
      std/sys/net/Host.hx

+ 1 - 1
std/cpp/_std/sys/net/Host.hx

@@ -28,7 +28,7 @@ package sys.net;
 @:core_api
 @:core_api
 class Host {
 class Host {
 
 
-	public var ip(default,null) : haxe.Int32;
+	public var ip(default,null) : Int;
 
 
 	public function new( name : String ) : Void {
 	public function new( name : String ) : Void {
 		ip = host_resolve(name);
 		ip = host_resolve(name);

+ 1 - 1
std/neko/_std/sys/net/Host.hx

@@ -28,7 +28,7 @@ package sys.net;
 @:core_api
 @:core_api
 class Host {
 class Host {
 
 
-	public var ip(default,null) : haxe.Int32;
+	public var ip(default,null) : Int;
 
 
 	public function new( name : String ) : Void {
 	public function new( name : String ) : Void {
 		ip = host_resolve(untyped name.__s);
 		ip = host_resolve(untyped name.__s);

+ 3 - 3
std/php/_std/sys/net/Host.hx

@@ -29,7 +29,7 @@ package sys.net;
 class Host {
 class Host {
 
 
 	private var _ip : String;
 	private var _ip : String;
-	public var ip(default,null) : haxe.Int32;
+	public var ip(default,null) : Int;
 
 
 	public function new( name : String ) : Void {
 	public function new( name : String ) : Void {
 		if(~/^(\d{1,3}\.){3}\d{1,3}$/.match(name)) {
 		if(~/^(\d{1,3}\.){3}\d{1,3}$/.match(name)) {
@@ -37,12 +37,12 @@ class Host {
 		} else {
 		} else {
 			_ip = untyped __call__('gethostbyname', name);
 			_ip = untyped __call__('gethostbyname', name);
 			if(_ip == name) {
 			if(_ip == name) {
-				ip = haxe.Int32.ofInt(0);
+				ip = 0;
 				return;
 				return;
 			}
 			}
 		}
 		}
 		var p = _ip.split('.');
 		var p = _ip.split('.');
-		ip = haxe.Int32.ofInt(untyped __call__('intval', __call__('sprintf', '%02X%02X%02X%02X', p[3], p[2], p[1], p[0]), 16));
+		ip = untyped __call__('intval', __call__('sprintf', '%02X%02X%02X%02X', p[3], p[2], p[1], p[0]), 16);
 	}
 	}
 
 
 	public function toString() : String {
 	public function toString() : String {

+ 1 - 1
std/sys/net/Host.hx

@@ -33,7 +33,7 @@ extern class Host {
 	/**
 	/**
 		The actual IP corresponding to the host.
 		The actual IP corresponding to the host.
 	**/
 	**/
-	var ip(default,null) : haxe.Int32;
+	var ip(default,null) : Int;
 
 
 	/**
 	/**
 		Creates a new Host : the name can be an IP in the form "127.0.0.1" or an host name such as "google.com", in which case
 		Creates a new Host : the name can be an IP in the form "127.0.0.1" or an host name such as "google.com", in which case