Skip to content

Commit

Permalink
[any_as_string] fix (W)CHAR getToStringBufferSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
moniwe authored and azoitl committed Mar 30, 2024
1 parent ac4346c commit 31f6a70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/datatypes/forte_char.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class CIEC_CHAR : public CIEC_ANY_CHAR{
/*! \brief calculates buffer size needed for toString conversion
*/
size_t getToStringBufferSize() const override final {
return sizeof("'$00'");
return sizeof("CHAR#'$00'");
}

EDataTypeID getDataTypeID() const override final {
Expand Down
2 changes: 1 addition & 1 deletion src/core/datatypes/forte_wchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class CIEC_WCHAR : public CIEC_ANY_CHAR {
/*! \brief calculates buffer size needed for toString conversion
*/
size_t getToStringBufferSize() const override {
return sizeof("\"$0000\"");
return sizeof("WCHAR#\"$0000\"");
}

EDataTypeID getDataTypeID() const override {
Expand Down

0 comments on commit 31f6a70

Please sign in to comment.