From b1df727f6429165e2008b6af1ee16b4fc7129637 Mon Sep 17 00:00:00 2001 From: jp Date: Mon, 4 Apr 2016 00:24:54 +0200 Subject: [PATCH] add float conversion to compiler service --- src/CompilerServices/CompilerServices.cs | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.3