aboutsummaryrefslogtreecommitdiff
path: root/pseudocode/operators/CAST.tosac
diff options
context:
space:
mode:
Diffstat (limited to 'pseudocode/operators/CAST.tosac')
-rw-r--r--pseudocode/operators/CAST.tosac6
1 files changed, 1 insertions, 5 deletions
diff --git a/pseudocode/operators/CAST.tosac b/pseudocode/operators/CAST.tosac
index b8fdea9..64af40a 100644
--- a/pseudocode/operators/CAST.tosac
+++ b/pseudocode/operators/CAST.tosac
@@ -17,11 +17,7 @@ for_each(index in shape) {
if (in_t == bool_t) {
out = (in) ? 1.0 : 0.0;
}
- if (is_saturating_float_type<out_t>()) {
- out = round_to_nearest_float_saturating(in);
- } else {
- out = round_to_nearest_float_nonsaturating(in);
- }
+ out = round_to_nearest_float(in);
} else {
// Conversion to integer cases
if (in_t == bool_t) {