diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-14 17:23:55 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-14 17:30:54 +0300 |
commit | 78dcc924cd0fedc1e9810fdfc08e6afdb1315057 (patch) | |
tree | 9c3db0fb7e5652ea7f9907d4ac6a8142d5fba953 /test/test_lib.cpp | |
parent | clean up includes (diff) | |
download | winapi-debug-78dcc924cd0fedc1e9810fdfc08e6afdb1315057.tar.gz winapi-debug-78dcc924cd0fedc1e9810fdfc08e6afdb1315057.zip |
fix GCC builds
Diffstat (limited to 'test/test_lib.cpp')
-rw-r--r-- | test/test_lib.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_lib.cpp b/test/test_lib.cpp index 6775850..ee02ffb 100644 --- a/test/test_lib.cpp +++ b/test/test_lib.cpp @@ -32,17 +32,17 @@ void do_throw_call_stack() { volatile int var = 42; void baz(F f) { - boost::nowide::cout << "baz " << pdb::format_address(&baz) << '\n'; + boost::nowide::cout << "baz " << pdb::format_address(reinterpret_cast<void*>(&baz)) << '\n'; f(); } void bar(F f) { - boost::nowide::cout << "bar " << pdb::format_address(&bar) << '\n'; + boost::nowide::cout << "bar " << pdb::format_address(reinterpret_cast<void*>(&bar)) << '\n'; baz(f); } void foo(F f) { - boost::nowide::cout << "foo " << pdb::format_address(&foo) << '\n'; + boost::nowide::cout << "foo " << pdb::format_address(reinterpret_cast<void*>(&foo)) << '\n'; bar(f); } |