From 952b84fba3cf36a81ef9bf1822c0ff94e89fd404 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 22 Feb 2012 15:08:24 -0800 Subject: [PATCH] Fix signed/unsigned compare warning Fix a signed/unsigned comparison warning on RHEL 5. --- elab_lval.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elab_lval.cc b/elab_lval.cc index 4e5934841..b10656442 100644 --- a/elab_lval.cc +++ b/elab_lval.cc @@ -480,7 +480,7 @@ bool PEIdent::elaborate_lval_net_part_(Design*des, // Special case: The range winds up selecting the entire // vector. Treat this as no part select at all. - if (loff == 0 && moff == (reg->vector_width()-1)) { + if (loff == 0 && moff == (long)(reg->vector_width()-1)) { return true; } @@ -489,7 +489,7 @@ bool PEIdent::elaborate_lval_net_part_(Design*des, converted to normalized form so is relative the variable pins. */ - if (loff < 0 || moff >= (signed)reg->vector_width()) { + if (loff < 0 || moff >= (long)reg->vector_width()) { cerr << get_fileline() << ": warning: Part select " << reg->name() << "[" << msb<<":"<