diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index c9af51328e3..b66c68b9904 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -23,13 +23,14 @@ namespace { bool isConstexprType(const TypePtr& type) { - BuiltinPtr bp = dynamic_pointer_cast(type); + BuiltinPtr bp = dynamic_pointer_cast(type); if (bp) { - switch (bp->kind()) + switch (bp->kind() ) { case Builtin::KindByte: case Builtin::KindBool: + case Builtin::KindShort: case Builtin::KindInt: case Builtin::KindLong: