Fix typo in switch expression

fixes up 18762c75e
This commit is contained in:
YoshiRulz 2020-03-02 17:15:30 +10:00
parent 1337beed1b
commit bbb28525f1
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 2 deletions

View File

@ -62,10 +62,10 @@ namespace BizHawk.Client.Common
{
return o switch
{
null => null,
double d => Color.FromArgb((int) (long) d),
string s => Color.FromName(s),
null => null,
_ => null
_ => (Color?) null
};
}