Fix test to pass on LLP64 targets
authorReid Kleckner <rnk@google.com>
Sun, 10 Feb 2019 20:20:26 +0000 (20:20 +0000)
committerReid Kleckner <rnk@google.com>
Sun, 10 Feb 2019 20:20:26 +0000 (20:20 +0000)
llvm-svn: 353654

clang/test/Analysis/osobjectcstylecastchecker_test.cpp

index bc9fb3e..07f878c 100644 (file)
@@ -28,8 +28,8 @@ unsigned no_warn_on_dynamic_cast(OSObject *obj) {
   return a->getCount();
 }
 
-unsigned long no_warn_on_primitive_conversion(OSArray *arr) {
-  return (unsigned long) arr;
+__SIZE_TYPE__ no_warn_on_primitive_conversion(OSArray *arr) {
+  return (__SIZE_TYPE__) arr;
 }
 
 unsigned no_warn_on_other_type_cast(A *a) {