From 4ab92891a53adda8c52c1947351371da58e33f64 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Fri, 18 Jun 2010 10:11:35 +0000 Subject: [PATCH] John called for a less surprising cast git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106277 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/TypeLoc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/AST/TypeLoc.h b/include/clang/AST/TypeLoc.h index 08b2829f14..ef2b0542e7 100644 --- a/include/clang/AST/TypeLoc.h +++ b/include/clang/AST/TypeLoc.h @@ -142,7 +142,7 @@ private: /// \brief Return the TypeLoc for a type source info. inline TypeLoc TypeSourceInfo::getTypeLoc() const { - return TypeLoc(Ty, const_cast(this + 1)); + return TypeLoc(Ty, const_cast(static_cast(this + 1))); } /// \brief Wrapper of type source information for a type with -- 2.49.0