fe4fbd
From 9fc5c84f0e5ba6266df3057c80af8279e03b7c04 Mon Sep 17 00:00:00 2001
fe4fbd
From: Markus Mohrhard <markus.mohrhard@googlemail.com>
fe4fbd
Date: Mon, 19 Sep 2016 21:04:02 +0200
fe4fbd
Subject: [PATCH] -Wtautological-compare, compare against the 'other' parameter
fe4fbd
fe4fbd
---
fe4fbd
 src/parser/json_parser_thread.cpp | 2 +-
fe4fbd
 1 file changed, 1 insertion(+), 1 deletion(-)
fe4fbd
fe4fbd
diff --git a/src/parser/json_parser_thread.cpp b/src/parser/json_parser_thread.cpp
fe4fbd
index 6f4dd2d3..5e3515e8 100644
fe4fbd
--- a/src/parser/json_parser_thread.cpp
fe4fbd
+++ b/src/parser/json_parser_thread.cpp
fe4fbd
@@ -77,7 +77,7 @@ bool parse_token::operator== (const parse_token& other) const
fe4fbd
         case parse_token_t::parse_error:
fe4fbd
             if (pstring(error_value.p, error_value.len) != pstring(other.error_value.p, other.error_value.len))
fe4fbd
                 return false;
fe4fbd
-            if (error_value.offset != error_value.offset)
fe4fbd
+            if (error_value.offset != other.error_value.offset)
fe4fbd
                 return false;
fe4fbd
             break;
fe4fbd
         default:
fe4fbd
-- 
fe4fbd
2.14.1
fe4fbd