aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorFranz Schrober <franzschrober@yahoo.de>2013-11-28 11:16:19 +0100
committerChristopher Li <sparse@chrisli.org>2013-11-29 15:03:56 -0800
commit8dca6425bb96383d23de0afbee1b7357bddd1636 (patch)
tree5a99f6a2c104613692c959be1a0adb9417b28809
parent01b00f59f2a6aba6b623c0a68827938c1f570877 (diff)
downloadsparse-dev-8dca6425bb96383d23de0afbee1b7357bddd1636.tar.gz
Revert "Fix mistaken comparison that becomes a no-op."
James Westby is the only person not reacting when asking him about the MIT license change over email or social media. So he has to count as not accepting and reverting his contributions is the only way to to avoid possible legal problems. The contributions can be re-added later when they are rewritten from scratch. This reverts commit 006eff06c7adcfb0d06c6fadf6e9b64f0488b2bf. Cc: James Westby <jw+debian@jameswestby.net> Signed-off-by: Franz Schrober <franzschrober@yahoo.de> Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--evaluate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/evaluate.c b/evaluate.c
index 19be637e..4b4ea6ee 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -175,7 +175,7 @@ left:
static int same_cast_type(struct symbol *orig, struct symbol *new)
{
- return orig->bit_size == new->bit_size && orig->bit_offset == new->bit_offset;
+ return orig->bit_size == new->bit_size && orig->bit_offset == orig->bit_offset;
}
static struct symbol *base_type(struct symbol *node, unsigned long *modp, unsigned long *asp)