diff options
| author | jp <jp_bruyere@hotmail.com> | 2016-04-04 00:24:54 +0200 |
|---|---|---|
| committer | jp <jp_bruyere@hotmail.com> | 2016-04-04 00:24:54 +0200 |
| commit | b1df727f6429165e2008b6af1ee16b4fc7129637 (patch) | |
| tree | fad12601221a72fa1f98f0e1d1a9af8594307dec /src/CompilerServices/CompilerServices.cs | |
| parent | 76fe2b4376ce36adbbf5e16b465036ba923b5555 (diff) | |
add float conversion to compiler service
Diffstat (limited to 'src/CompilerServices/CompilerServices.cs')
| -rw-r--r-- | src/CompilerServices/CompilerServices.cs | 2 |
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 |