diff --git a/libcxxabi/test/catch_ptr_02.pass.cpp b/libcxxabi/test/catch_ptr_02.pass.cpp --- a/libcxxabi/test/catch_ptr_02.pass.cpp +++ b/libcxxabi/test/catch_ptr_02.pass.cpp @@ -17,6 +17,7 @@ // XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.9 #include +#include #if __cplusplus < 201103L #define DISABLE_NULLPTR_TESTS @@ -136,7 +137,7 @@ assert(false); } catch (base2 *p) { - assert ((unsigned long)p == 12+sizeof(base1)); + assert ((uintptr_t)p == 12+sizeof(base1)); } catch (...) {