Skip to content

Commit

Permalink
Merge pull request #44 from lanl/43-bug-in-require
Browse files Browse the repository at this point in the history
Change 'condition' to 'condition_bool'
  • Loading branch information
Yurlungur authored Aug 14, 2024
2 parents c01fa56 + b9b99b3 commit 93833ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports-of-call/portable_errors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ inline void require(bool condition_bool, const char *const condition,
inline void require(bool condition_bool, const char *const condition,
std::stringstream const &message,
const char *const filename, int const linenumber) {
require(condition, condition, message.str().c_str(), filename, linenumber);
require(condition_bool, condition, message.str().c_str(), filename, linenumber);
}

// Prints an error message with file name and line number and then aborts.
Expand Down

0 comments on commit 93833ec

Please sign in to comment.