mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 19:28:48 +00:00
🔨 Cast result instead of literals ToByte()
This commit is contained in:
parent
e7bf572d09
commit
6be765a92d
@ -81,7 +81,7 @@
|
||||
/// <returns>Returns 00000001 if <paramref name="value"/> is <see langword="true"/>, otherwise 0000000.</returns>
|
||||
public static byte ToByte(this bool value)
|
||||
{
|
||||
return value ? (byte)1 : (byte)0;
|
||||
return (byte)(value ? 1 : 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user