summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r--clang/lib/Sema/DeclSpec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index c76d94e7d80..460e7722c10 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/lib/Sema/DeclSpec.cpp
@@ -1112,7 +1112,7 @@ void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) {
}
// Validate the width of the type.
- switch (TypeSpecWidth) {
+ switch (static_cast<TypeSpecifierWidth>(TypeSpecWidth)) {
case TSW_unspecified: break;
case TSW_short: // short int
case TSW_longlong: // long long int
OpenPOWER on IntegriCloud