Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroModel committed Nov 14, 2024
1 parent 4d7f114 commit 0bf6032
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions tests/0031.tpeb/teb.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <cstdio>
#include <fast_io_core.h>

int main()
{
printf("nt_current_teb():%p\n", ::fast_io::win32::nt::nt_current_teb());
printf("nt_get_current_peb():%p\nRtlGetCurrentPeb():%p\n",
::fast_io::win32::nt::nt_get_current_peb(),
::fast_io::win32::nt::RtlGetCurrentPeb());
}
2 changes: 1 addition & 1 deletion tests/0035.process/posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ int main(int argc, char **argv)

::fast_io::posix_process p{u8"test", {}, {}, {}};
auto ec{wait(p)};
if (ec != 114514)
if (::std::bit_cast<int>(ec) != 114514)
{
::fast_io::fast_terminate();
}
Expand Down

0 comments on commit 0bf6032

Please sign in to comment.