Skip to content

Commit

Permalink
today()
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Jun 27, 2024
1 parent 38efb59 commit 5795c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pya2l/aml/klasses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ inline std::string get_string(auto var) {

inline long double as_double(const numeric_t& value) {
if (std::holds_alternative<std::int64_t>(value)) {
return std::bit_cast<long double>(std::get<std::int64_t>(value));
return static_cast<long double>(std::get<std::int64_t>(value));
} else if (std::holds_alternative<long double>(value)) {
return std::get<long double>(value);
}
Expand Down

0 comments on commit 5795c24

Please sign in to comment.