Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
gcc did not like && and || mix
Browse files Browse the repository at this point in the history
  • Loading branch information
navarreCirca867 committed Sep 1, 2024
1 parent 467d592 commit 749af0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Diagnostic/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
* workings, like a slight optimization. This value will reset to 0
* every new minor version.
*/
#define __LETO__VERSION__TWEAK__ 1
#define __LETO__VERSION__TWEAK__ 2

/**
* @brief This is the string represenation of Leto's base version,
Expand Down
5 changes: 3 additions & 2 deletions Source/Utilities/Strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ void LetoSetStringF(bool warn_overcat, char** buffer,
int attempted_characters =
vsnprintf(temp_buffer, max_string_length, format, args);

if (attempted_characters < 0 ||
(size_t)attempted_characters > max_string_length && warn_overcat)
if ((attempted_characters < 0 ||
(size_t)attempted_characters > max_string_length) &&
warn_overcat)
LetoReportWarning(string_overconcat);

if (*buffer != NULL) free(*buffer);
Expand Down

0 comments on commit 749af0d

Please sign in to comment.