We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d164af2 commit 038fa96Copy full SHA for 038fa96
1 file changed
symbols/vararray.py
@@ -14,6 +14,7 @@
14
import api.global_ as gl
15
from api.constants import TYPE
16
from api.constants import CLASS
17
+from api.constants import SCOPE
18
from .var import SymbolVAR
19
from .boundlist import SymbolBOUNDLIST
20
@@ -42,7 +43,7 @@ def count(self):
42
43
44
@property
45
def size(self):
- return self.count * self.type_.size
46
+ return self.count * self.type_.size if self.scope != SCOPE.parameter else TYPE.size(gl.PTR_TYPE)
47
48
49
def memsize(self):
0 commit comments