[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Comparison in place of an assignment
Cheers,
Ondrej
>From 1c7bbd9a20157441d0031a55eae3d75fde04e090 Mon Sep 17 00:00:00 2001
From: Ondrej Oprala <ondrej.oprala@gmail.com>
Date: Wed, 12 Apr 2017 12:32:42 +0200
Subject: [PATCH] Fix comparison used instead of an assignment
* src/abg-ir.cc (parse_integral_type): An attempt at clang
compilation has discovered there to be a comparison with
unused result, that apparently should be an assignment.
Signed-off-by: Ondrej Oprala <ondrej.oprala@gmail.com>
---
src/abg-ir.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/abg-ir.cc b/src/abg-ir.cc
index e033491..40338e5 100644
--- a/src/abg-ir.cc
+++ b/src/abg-ir.cc
@@ -9559,7 +9559,7 @@ parse_integral_type(const string& type_name,
prev_word = cur_word;
cur_word = input.substr(prev_pos, cur_pos - prev_pos);
if (cur_word == "long")
- cur_word == "long long";
+ cur_word = "long long";
else
{
cur_pos = prev_pos;
--
2.7.4