Skip to content

Commit

Permalink
Haxe 2.09 fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dionjwa committed May 7, 2012
1 parent 4ef480f commit 1c30bb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/haxelib.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project name="transition9" url="https://github.com/dionjwa/transition9" license="BSD">
<user name="dionjwa"/>
<description>A collection of tools.</description>
<version name="0.8.3">Minor update.</version>
<version name="0.8.4">Minor update.</version>
<depends name="polygonal" />
<tag v="nodejs"/>
<tag v="asynchronous"/>
Expand Down
2 changes: 1 addition & 1 deletion src/org/transition9/util/Comparators.hx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class Comparators
return compareStrings(Std.string(s1).toLowerCase(), Std.string(s2).toLowerCase());
}

inline public static function compareEnums (e1 :Enum<Dynamic>, e2 :Enum<Dynamic>) :Int
inline public static function compareEnums (e1 :EnumValue, e2 :EnumValue) :Int
{
return compareStrings(Type.enumConstructor(e1), Type.enumConstructor(e2));
}
Expand Down
2 changes: 1 addition & 1 deletion src/org/transition9/util/StringUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class StringUtil
if (c == String) {
return Std.string(obj);
}
case TEnum(e): return Type.enumConstructor(e).substr(Type.enumConstructor(e).lastIndexOf(".") + 1);
// case TEnum(e): return Type.enumConstructor(e).substr(Type.enumConstructor(e).lastIndexOf(".") + 1);
case TUnknown: Std.string(obj);
default://Keep going
}
Expand Down

0 comments on commit 1c30bb7

Please sign in to comment.