From 9473e823edcab3cf1d79b200ba791d734ebc67ac Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 9 Mar 2009 18:05:54 -0700 Subject: [PATCH] You must assert a logical not NULL. This fixes a small problem where an assert was being called with NULL instead of 0. (cherry picked from commit ac4cb1bbe9b3df1577a8b6a4b752fdbeb93eb9fa) --- netlist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlist.cc b/netlist.cc index a3106e796..6ec49d43b 100644 --- a/netlist.cc +++ b/netlist.cc @@ -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_);