From 52c9a8f776768ea8e0f35f58612392740ae1114a Mon Sep 17 00:00:00 2001 From: jand Date: Thu, 26 Feb 2004 22:59:55 +0000 Subject: [PATCH] *** empty log message *** --- myhdl/_extractHierarchy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/myhdl/_extractHierarchy.py b/myhdl/_extractHierarchy.py index d0148432..2d8c5f4a 100644 --- a/myhdl/_extractHierarchy.py +++ b/myhdl/_extractHierarchy.py @@ -205,10 +205,10 @@ def _getGens(arg): else: l = [] for elt in arg: - if type(arg) is GeneratorType: - l.append(arg) - elif type(arg) is _AlwaysComb: - l.append(arg.gen) + if type(elt) is GeneratorType: + l.append(elt) + elif type(elt) is _AlwaysComb: + l.append(elt.gen) return l