Remove compile warning

This commit is contained in:
Cary R
2014-02-28 17:29:55 -08:00
parent 13c1925045
commit d0d421ebe2
+1 -1
View File
@@ -759,7 +759,7 @@ unsigned PEBLeftWidth::test_width(Design*des, NetScope*scope, width_mode_t&mode)
// in the following calculations.
if (r_val < 0)
r_val = 0;
if (r_val > width_cap)
if ((unsigned long)r_val > width_cap)
r_val = width_cap;
// If the left operand is a simple unsized number, we