summaryrefslogtreecommitdiff
path: root/python/variable.py
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2023-03-24 11:40:26 -0400
committerBrian Potchik <brian@vector35.com>2023-03-24 11:40:26 -0400
commit7b81b5d10f92a71a04ff0aa560d57c351f5d8724 (patch)
tree5b3b89a8014d7c5ad863c185f9cac506fec3b635 /python/variable.py
parentcbfcc2ee51873466a7612a06bb6cbf5603af45e0 (diff)
Fix constant data access in the Python API for small data sizes.
Diffstat (limited to 'python/variable.py')
-rw-r--r--python/variable.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/python/variable.py b/python/variable.py
index 0975acc5..09b24e9c 100644
--- a/python/variable.py
+++ b/python/variable.py
@@ -219,8 +219,6 @@ class ConstantData(RegisterValue):
@property
def data(self) -> databuffer.DataBuffer:
- if self.size <= 8:
- raise ValueError(f"Invalid ConstantData with size: {self.size}")
if self.function is None:
raise ValueError(f"ConstantData requires a Function instance: {self.size}")
return self.function.get_constant_data(self.type, self.value, self.size)