summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-analog/grc/analog_const_source_x.block.yml2
-rw-r--r--grc/core/Constants.py2
-rw-r--r--grc/core/params/param.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/gr-analog/grc/analog_const_source_x.block.yml b/gr-analog/grc/analog_const_source_x.block.yml
index 4e94ac0d38..ae489b5dc3 100644
--- a/gr-analog/grc/analog_const_source_x.block.yml
+++ b/gr-analog/grc/analog_const_source_x.block.yml
@@ -8,7 +8,7 @@ parameters:
dtype: enum
options: [complex, float, int, short, byte]
option_attributes:
- const_type: [complex, real, int, short, gr.sizeof_char]
+ const_type: [complex, real, int, short, byte]
fcn: [c, f, i, s, b]
hide: part
- id: const
diff --git a/grc/core/Constants.py b/grc/core/Constants.py
index ebcf9ffeea..5d7565e647 100644
--- a/grc/core/Constants.py
+++ b/grc/core/Constants.py
@@ -46,7 +46,7 @@ HIER_BLOCK_FILE_MODE = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP
PARAM_TYPE_NAMES = {
'raw', 'enum',
- 'complex', 'real', 'float', 'int',
+ 'complex', 'real', 'float', 'int', 'short', 'byte',
'complex_vector', 'real_vector', 'float_vector', 'int_vector',
'hex', 'string', 'bool',
'file_open', 'file_save', 'dir_select', '_multiline', '_multiline_python_external',
diff --git a/grc/core/params/param.py b/grc/core/params/param.py
index 9e612abf91..041771f52a 100644
--- a/grc/core/params/param.py
+++ b/grc/core/params/param.py
@@ -203,7 +203,7 @@ class Param(Element):
#########################
# Numeric Types
#########################
- elif dtype in ('raw', 'complex', 'real', 'float', 'int', 'hex', 'bool'):
+ elif dtype in ('raw', 'complex', 'real', 'float', 'int', 'short', 'byte', 'hex', 'bool'):
if expr:
try:
if isinstance(expr, str) and self.is_float(expr[:-1]):