Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restoring HAS_F64 functionality #2967

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Fw/Types/StringToNumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
Fw::StringUtils::StringToNumberStatus Fw::StringUtils::string_to_number(const CHAR* input, FwSizeType buffer_size, I8& output, char** next, U8 base) {
return string_to_number_as_template<I8, long long, strtoll>(input, buffer_size, output, next, base);
}
#if FW_HAS_F64
Dismissed Show dismissed Hide dismissed
Fw::StringUtils::StringToNumberStatus Fw::StringUtils::string_to_number(const CHAR* input, FwSizeType buffer_size, F64& output, char** next) {
char* output_next = nullptr;
Fw::StringUtils::StringToNumberStatus status = string_to_helper_input_check(input, buffer_size, 0);
Expand All @@ -112,6 +113,7 @@
status = string_to_helper_output_check(status, input, output_next, next);
return status;
}
#endif

Fw::StringUtils::StringToNumberStatus Fw::StringUtils::string_to_number(const CHAR* input, FwSizeType buffer_size, F32& output, char** next) {
char* output_next = nullptr;
Expand Down
4 changes: 2 additions & 2 deletions Fw/Types/StringUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ StringToNumberStatus string_to_number(const CHAR* input, FwSizeType buffer_size,
* \return SUCCESSFUL_CONVERSION when output is valid, something else on error.
*/
StringToNumberStatus string_to_number(const CHAR* input, FwSizeType buffer_size, F32& output, char** next);

#if FW_HAS_F64
/**
* \brief converts a string to a F64
*
Expand All @@ -209,7 +209,7 @@ StringToNumberStatus string_to_number(const CHAR* input, FwSizeType buffer_size,
* \return SUCCESSFUL_CONVERSION when output is valid, something else on error.
*/
StringToNumberStatus string_to_number(const CHAR* input, FwSizeType buffer_size, F64& output, char** next);

#endif



Expand Down
Loading