aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CompilerServices
diff options
context:
space:
mode:
authorjp <jp_bruyere@hotmail.com>2016-04-04 00:24:54 +0200
committerjp <jp_bruyere@hotmail.com>2016-04-04 00:24:54 +0200
commitb1df727f6429165e2008b6af1ee16b4fc7129637 (patch)
treefad12601221a72fa1f98f0e1d1a9af8594307dec /src/CompilerServices
parent76fe2b4376ce36adbbf5e16b465036ba923b5555 (diff)
add float conversion to compiler service
Diffstat (limited to 'src/CompilerServices')
-rw-r--r--src/CompilerServices/CompilerServices.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs
index cd491c4d..c1d3db6d 100644
--- a/src/CompilerServices/CompilerServices.cs
+++ b/src/CompilerServices/CompilerServices.cs
@@ -579,6 +579,8 @@ namespace Crow
name = "ToInt64";
else if( targetType == typeof( double ) )
name = "ToDouble";
+ else if( targetType == typeof( float ) )
+ name = "ToSingle";
else if (targetType == typeof (string ) )
return typeof(object).GetMethod("ToString", Type.EmptyTypes);
else