Skip to content

Commit

Permalink
Fix build breakage caused by changes in upstream status code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ned14 committed Dec 16, 2023
1 parent 5faec14 commit aa7134b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/llfio/revision.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time
#define LLFIO_PREVIOUS_COMMIT_REF e152d4c1dc85b7e9ae40470205b13a7031631e52
#define LLFIO_PREVIOUS_COMMIT_DATE "2023-11-06 23:28:02 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE e152d4c1
#define LLFIO_PREVIOUS_COMMIT_REF 5faec149df566b2996bb154f44c0a5801c53acb9
#define LLFIO_PREVIOUS_COMMIT_DATE "2023-12-16 21:48:44 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE 5faec149
4 changes: 2 additions & 2 deletions test/tests/issue0102.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ static inline void TestIssue0102()

// (I know this is very likely to be misaligned on 64Bit systems, but
// otherwise the problem/segfault is only triggered on 32Bit systems)
auto erasedError =
new(page + llfio::utils::page_size() - sizeof(outcome_e::status_code_domain *) - sizeof(int)) outcome_e::erased_errored_status_code<int>(ioError);
auto erasedError = new(page + llfio::utils::page_size() - sizeof(outcome_e::status_code_domain *) - sizeof(int))
outcome_e::erased_errored_status_code<int>(outcome_e::in_place, ioError);

// the following line must not segfault
std::cout << erasedError->message() << std::endl;
Expand Down

0 comments on commit aa7134b

Please sign in to comment.