Skip to content

Commit

Permalink
Restoring HAS_F64 functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Oct 17, 2024
1 parent 3c5fd74 commit 495bdfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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 CH
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
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 @@ Fw::StringUtils::StringToNumberStatus Fw::StringUtils::string_to_number(const CH
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 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

0 comments on commit 495bdfe

Please sign in to comment.