summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-03-24 06:19:48 +0100
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-03-24 06:19:48 +0100
commit58f4ff49237781e1512d0c5338997e59b239cc8d (patch)
treec5cdcb68fbd5ebc3f3284597ba282c482a3af6dd
parent0c1a82f0dd72a7343e078bc1bd867f112a418662 (diff)
gen: Fix size checking, which indeed was correct
-rw-r--r--src/gen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen.rs b/src/gen.rs
index bdf80264..1d4e5a09 100644
--- a/src/gen.rs
+++ b/src/gen.rs
@@ -522,7 +522,7 @@ fn gen_globals(mut ctx: &mut GenCtx,
for mut g in gs.into_iter() {
if let Some(substituted) = ctx.current_module_mut().translations.remove(&g.name()) {
match (substituted.layout(), g.layout()) {
- (Some(l), Some(lg)) if l.size != lg.size => {},
+ (Some(l), Some(lg)) if l.size == lg.size => {},
(None, None) => {},
_ => {
// XXX real logger