]> O.S.I.I.S - jp/crow.git/commitdiff
add float conversion to compiler service
authorjp <jp_bruyere@hotmail.com>
Sun, 3 Apr 2016 22:24:54 +0000 (00:24 +0200)
committerjp <jp_bruyere@hotmail.com>
Sun, 3 Apr 2016 22:24:54 +0000 (00:24 +0200)
src/CompilerServices/CompilerServices.cs

index cd491c4dcb16d83c2afbdaeb49d5d6b31368ec7d..c1d3db6d3227eb5773cb240443681b233311b09d 100644 (file)
@@ -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