From 6be765a92da12d334e609404caa31b71f6141852 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 18 Apr 2020 23:30:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Cast=20result=20instead=20of=20l?= =?UTF-8?q?iterals=20ToByte()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- X10D/src/BooleanExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X10D/src/BooleanExtensions.cs b/X10D/src/BooleanExtensions.cs index 2286b68..4c5f9e1 100644 --- a/X10D/src/BooleanExtensions.cs +++ b/X10D/src/BooleanExtensions.cs @@ -81,7 +81,7 @@ /// Returns 00000001 if is , otherwise 0000000. public static byte ToByte(this bool value) { - return value ? (byte)1 : (byte)0; + return (byte)(value ? 1 : 0); } ///