[chronojump] Fixes compiler warning: a char can't be null.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixes compiler warning: a char can't be null.
- Date: Thu, 13 Oct 2016 09:44:44 +0000 (UTC)
commit e9c7d20a4172462ac5cc5bd95d7d49961608939c
Author: Carles Pina i Estany <carles pina cat>
Date: Wed Oct 12 16:56:19 2016 +0200
Fixes compiler warning: a char can't be null.
a char is a primitive type and has always a value. Actually myByte =
null; can't compile because it's impossible.
Compiler said:
Warning CS0472: The result of comparing value type `char' with null is
always `true' (CS0472) (chronojump)
src/chronopicDetect.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/chronopicDetect.cs b/src/chronopicDetect.cs
index e5c35d5..8d7c5d5 100644
--- a/src/chronopicDetect.cs
+++ b/src/chronopicDetect.cs
@@ -476,7 +476,7 @@ public class ChronopicAutoCheckEncoder : ChronopicAuto
myByte = (char) sp.ReadByte();
LogB.Debug("readed");
- if(myByte != null && myByte.ToString() != "")
+ if(myByte.ToString() != "")
LogB.Information(myByte.ToString());
if(myByte == 'J') {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]