You must assert a logical not NULL.

This fixes a small problem where an assert was being called
with NULL instead of 0.
This commit is contained in:
Cary R 2009-03-09 18:05:54 -07:00 committed by Stephen Williams
parent b0c4a87133
commit ac4cb1bbe9
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ const Link& NetPins::pin(unsigned idx) const
if (!pins_ && !disable_virtual_pins) {
cerr << get_fileline() << ": internal error: pin is unexpectedly"
" virtual, try again with -pDISABLE_VIRTUAL_PINS=true" << endl;
assert(NULL);
assert(0);
}
assert(pins_);
assert(idx < npins_);