aboutsummaryrefslogtreecommitdiff
path: root/pseudocode/library/type_conversion_helpers.tosac
diff options
context:
space:
mode:
Diffstat (limited to 'pseudocode/library/type_conversion_helpers.tosac')
-rw-r--r--pseudocode/library/type_conversion_helpers.tosac9
1 files changed, 3 insertions, 6 deletions
diff --git a/pseudocode/library/type_conversion_helpers.tosac b/pseudocode/library/type_conversion_helpers.tosac
index f26c589..f2b42a6 100644
--- a/pseudocode/library/type_conversion_helpers.tosac
+++ b/pseudocode/library/type_conversion_helpers.tosac
@@ -11,6 +11,9 @@
// A no-op for floating-point types
Type make_signed(Type in_t)
{
+ if (is_floating_point<in_t>()) {
+ return in_t;
+ }
switch(in_t) {
case bool_t:
return bool_t;
@@ -22,12 +25,6 @@ Type make_signed(Type in_t)
return int32_t;
case i48_t:
return int48_t;
- case fp16_t:
- return fp16_t;
- case bf16_t:
- return bf16_t;
- case fp32_t:
- return fp32_t;
}
}