[Pkg-electronics-commits] [gnucap] 26/47: fix net_nodes bug
felix salfelder
felix-guest at moszumanska.debian.org
Mon Sep 26 10:36:49 UTC 2016
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch master
in repository gnucap.
commit ac9d63cbb71aec82ef2b8f57ca25eec3f9748fe5
Author: Felix Salfelder <felix at salfelder.org>
Date: Fri Sep 11 15:57:10 2015 +0200
fix net_nodes bug
---
lib/d_subckt.cc | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/d_subckt.cc b/lib/d_subckt.cc
index d625181..3cc4698 100644
--- a/lib/d_subckt.cc
+++ b/lib/d_subckt.cc
@@ -141,7 +141,11 @@ private:
std::string port_name(int i)const {itested();
if (_parent) {itested();
- return _parent->port_value(i);
+ if (i<_parent->net_nodes()){ untested();
+ return _parent->port_value(i);
+ }else{ untested();
+ return "";
+ }
}else{itested();
return "";
}
@@ -346,5 +350,4 @@ double DEV_SUBCKT::tr_probe_num(const std::string& x)const
}
} // namespace
/*--------------------------------------------------------------------------*/
-/*--------------------------------------------------------------------------*/
// vim:ts=8:sw=2:noet:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/gnucap.git
More information about the Pkg-electronics-commits
mailing list