Skip to content

Commit

Permalink
fix result api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Nov 4, 2024
1 parent 51a42b4 commit f469582
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/generator/ArmV7Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ geode::Result<FunctionData> ArmV7HandlerGenerator::generateTrampoline(uint64_t t
GenRelocateCodeAndBranch(originBuffer, relocatedBuffer, origin, relocated, +[](void* dest, void const* src, size_t size) {
auto res = Target::get().writeMemory(dest, src, size);
if (!res) {
error = res.error();
error = res.unwrapErr();
}
});

Expand Down
2 changes: 1 addition & 1 deletion src/generator/ArmV8Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ geode::Result<FunctionData> ArmV8HandlerGenerator::generateTrampoline(uint64_t t
GenRelocateCodeAndBranch(originBuffer, relocatedBuffer, origin, relocated, +[](void* dest, void const* src, size_t size) {
auto res = Target::get().writeMemory(dest, src, size);
if (!res) {
error = res.error();
error = res.unwrapErr();
}
});

Expand Down

0 comments on commit f469582

Please sign in to comment.