summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorverylazyguy <verylazyguy@hotmail.com>2019-06-17 12:53:56 -0400
committerKyle Martin <krm504@nyu.edu>2019-07-03 16:09:49 -0400
commit13a78e5478e7f3f443b2b487ebc5b1ec0e1f1fb4 (patch)
tree1110f0f509a142bd0cf4723c5b29974ed45cfc17 /python
parentf942ccf4af2e12ed2a78ce1f55708c39ef461185 (diff)
- fix a type error when trying to create a function type with a parameter that has a location
Diffstat (limited to 'python')
-rw-r--r--python/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/types.py b/python/types.py
index 67976a33..8880d152 100644
--- a/python/types.py
+++ b/python/types.py
@@ -668,7 +668,7 @@ class Type(object):
param_buf[i].defaultLocation = True
else:
param_buf[i].defaultLocation = False
- param_buf[i].location.type = params[i].location.type
+ param_buf[i].location.type = params[i].location.source_type
param_buf[i].location.index = params[i].location.index
param_buf[i].location.storage = params[i].location.storage
else: