diff options
| author | jp <jp_bruyere@hotmail.com> | 2016-04-14 12:16:50 +0200 |
|---|---|---|
| committer | jp <jp_bruyere@hotmail.com> | 2016-04-14 12:16:50 +0200 |
| commit | 45fb721a432caec62068994ee9a56a4b843bcc03 (patch) | |
| tree | 397399ea92f8a5748856dd4189c782b30ae20d59 /src/CompilerServices | |
| parent | 7d8177d457e8cdf623888ae01f6496aa67b93548 (diff) | |
| parent | ef53a23fa66932931b7150b489750725d82f77aa (diff) | |
Merge remote-tracking branch 'origin/ottd'
Diffstat (limited to 'src/CompilerServices')
| -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 |