summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-12 09:26:21 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-12 09:26:21 -0800
commitdf39695ef7997e8cfb4bb3e00976c4689edb15f5 (patch)
tree328447b48fe2ae41a7ea7f32e78a14ecca428299 /parse/stab.c
parent1ded9b772e698bf9aa277fc3790c7674046161e2 (diff)
downloadmc-df39695ef7997e8cfb4bb3e00976c4689edb15f5.tar.gz
Fix copy-paste error in stab.c
Thanks to 'paperwing' dude on irc.
Diffstat (limited to 'parse/stab.c')
-rw-r--r--parse/stab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/stab.c b/parse/stab.c
index fb0dc6c..5b5512d 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -269,7 +269,7 @@ static int mergedecl(Node *old, Node *new)
if (e->decl.isconst != g->decl.isconst)
fatal(e, "export %s declared with different constness on %s:%d", declname(e),
fname(g->loc), lnum(g->loc));
- if (e->decl.isconst != g->decl.isconst)
+ if (e->decl.isextern != g->decl.isextern)
fatal(e, "export %s declared with different externness on %s:%d", declname(e),
fname(g->loc), lnum(g->loc));