@@ -171,7 +171,7 @@ namespace te_builtins
171
171
return (!std::isfinite (val1) && !std::isfinite (val2)) ?
172
172
te_parser::te_nan :
173
173
static_cast <te_type>(
174
- (te_parser::double_to_bool (val1) && te_parser::double_to_bool (val2)) ? 1 : 0 );
174
+ (te_parser::number_to_bool (val1) && te_parser::number_to_bool (val2)) ? 1 : 0 );
175
175
// clang-format on
176
176
}
177
177
@@ -182,14 +182,14 @@ namespace te_builtins
182
182
return (!std::isfinite (val1) && !std::isfinite (val2)) ?
183
183
te_parser::te_nan :
184
184
static_cast <te_type>(
185
- (te_parser::double_to_bool (val1) || te_parser::double_to_bool (val2)) ? 1 : 0 );
185
+ (te_parser::number_to_bool (val1) || te_parser::number_to_bool (val2)) ? 1 : 0 );
186
186
// clang-format on
187
187
}
188
188
189
189
[[nodiscard]]
190
190
static te_type te_not (te_type val)
191
191
{
192
- return std::isfinite (val) ? static_cast <te_type>(!te_parser::double_to_bool (val)) :
192
+ return std::isfinite (val) ? static_cast <te_type>(!te_parser::number_to_bool (val)) :
193
193
te_parser::te_nan;
194
194
}
195
195
@@ -1126,9 +1126,9 @@ namespace te_builtins
1126
1126
static te_type te_and_maybe_nan (te_type val1, te_type val2MaybeNan)
1127
1127
{
1128
1128
return !std::isfinite (val2MaybeNan) ?
1129
- static_cast <te_type>(te_parser::double_to_bool (val1)) :
1130
- static_cast <te_type>(te_parser::double_to_bool (val1) &&
1131
- te_parser::double_to_bool (val2MaybeNan));
1129
+ static_cast <te_type>(te_parser::number_to_bool (val1)) :
1130
+ static_cast <te_type>(te_parser::number_to_bool (val1) &&
1131
+ te_parser::number_to_bool (val2MaybeNan));
1132
1132
}
1133
1133
1134
1134
[[nodiscard]]
@@ -1175,9 +1175,9 @@ namespace te_builtins
1175
1175
static te_type te_or_maybe_nan (te_type val1, te_type val2MaybeNan)
1176
1176
{
1177
1177
return !std::isfinite (val2MaybeNan) ?
1178
- static_cast <te_type>(te_parser::double_to_bool (val1)) :
1179
- static_cast <te_type>(te_parser::double_to_bool (val1) ||
1180
- te_parser::double_to_bool (val2MaybeNan));
1178
+ static_cast <te_type>(te_parser::number_to_bool (val1)) :
1179
+ static_cast <te_type>(te_parser::number_to_bool (val1) ||
1180
+ te_parser::number_to_bool (val2MaybeNan));
1181
1181
}
1182
1182
1183
1183
[[nodiscard]]
@@ -1223,16 +1223,16 @@ namespace te_builtins
1223
1223
[[nodiscard]]
1224
1224
static te_type te_if (te_type val1, te_type val2, te_type val3)
1225
1225
{
1226
- return te_parser::double_to_bool (val1) ? val2 : val3;
1226
+ return te_parser::number_to_bool (val1) ? val2 : val3;
1227
1227
}
1228
1228
1229
1229
[[nodiscard]]
1230
1230
static te_type te_ifs (te_type if1, te_type if1True, te_type if2, te_type if2True, te_type if3,
1231
1231
te_type if3True)
1232
1232
{
1233
- return te_parser::double_to_bool (if1) ? if1True :
1234
- te_parser::double_to_bool (if2) ? if2True :
1235
- te_parser::double_to_bool (if3) ? if3True :
1233
+ return te_parser::number_to_bool (if1) ? if1True :
1234
+ te_parser::number_to_bool (if2) ? if2True :
1235
+ te_parser::number_to_bool (if3) ? if3True :
1236
1236
te_parser::te_nan;
1237
1237
}
1238
1238
0 commit comments