From efe3262c9f81203796a53b9ff0cad8489717c04f Mon Sep 17 00:00:00 2001 From: Joe George Date: Fri, 8 Mar 2024 09:56:12 -0500 Subject: [PATCH] changes --- cpp/src/slice2cpp/Gen.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: