diff options
| -rw-r--r-- | clang/test/Analysis/ptr-arith.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/ptr-arith.cpp b/clang/test/Analysis/ptr-arith.cpp index f546d5ae7cb..01adf476e4f 100644 --- a/clang/test/Analysis/ptr-arith.cpp +++ b/clang/test/Analysis/ptr-arith.cpp @@ -107,7 +107,7 @@ unsigned ptrSubtractionNoCrash(char *Begin, char *End) { } // Bug 34309 -bool ptrAsIntegerSubtractionNoCrash(long x, char *p) { - long y = (long)p - 1; +bool ptrAsIntegerSubtractionNoCrash(__UINTPTR_TYPE__ x, char *p) { + __UINTPTR_TYPE__ y = (__UINTPTR_TYPE__)p - 1; return y == x; } |

