diff --git a/shadowsocks-csharp/3rd/zxing/common/reedsolomon/GenericGFPoly.cs b/shadowsocks-csharp/3rd/zxing/common/reedsolomon/GenericGFPoly.cs index 427fe11d..96df3e69 100755 --- a/shadowsocks-csharp/3rd/zxing/common/reedsolomon/GenericGFPoly.cs +++ b/shadowsocks-csharp/3rd/zxing/common/reedsolomon/GenericGFPoly.cs @@ -145,7 +145,7 @@ namespace ZXing.Common.ReedSolomon internal GenericGFPoly addOrSubtract(GenericGFPoly other) { - if (!field.Equals(other.field)) + if (field != other.field) { throw new ArgumentException("GenericGFPolys do not have same GenericGF field"); } @@ -181,7 +181,7 @@ namespace ZXing.Common.ReedSolomon internal GenericGFPoly multiply(GenericGFPoly other) { - if (!field.Equals(other.field)) + if (field != other.field) { throw new ArgumentException("GenericGFPolys do not have same GenericGF field"); } @@ -246,7 +246,7 @@ namespace ZXing.Common.ReedSolomon internal GenericGFPoly[] divide(GenericGFPoly other) { - if (!field.Equals(other.field)) + if (field != other.field) { throw new ArgumentException("GenericGFPolys do not have same GenericGF field"); } diff --git a/shadowsocks-csharp/3rd/zxing/qrcode/encoder/Encoder.cs b/shadowsocks-csharp/3rd/zxing/qrcode/encoder/Encoder.cs index 56c9a9a8..0af5537f 100755 --- a/shadowsocks-csharp/3rd/zxing/qrcode/encoder/Encoder.cs +++ b/shadowsocks-csharp/3rd/zxing/qrcode/encoder/Encoder.cs @@ -514,7 +514,8 @@ namespace ZXing.QrCode.Internal BitArray bits, String encoding) { - if (mode.Equals(Mode.BYTE)) + // TODO: check the purpose of this .Equals(obj) + if (mode == Mode.BYTE) append8BitBytes(content, bits, encoding); else throw new WriterException("Invalid mode: " + mode);