Browse Source

bugfix for new String(v) when v is not a neko native string

Nicolas Cannasse 13 years ago
parent
commit
b5d1693a0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/neko/_std/String.hx

+ 1 - 1
std/neko/_std/String.hx

@@ -37,7 +37,7 @@
 	public function new(string:String) : Void {
 	public function new(string:String) : Void {
 		untyped {
 		untyped {
 			if( __dollar__typeof(string) != __dollar__tstring )
 			if( __dollar__typeof(string) != __dollar__tstring )
-				s = __dollar__string(string);
+				string = __dollar__string(string);
 			this.__s = string;
 			this.__s = string;
 			this.length = __dollar__ssize(string);
 			this.length = __dollar__ssize(string);
 		}
 		}