summaryrefslogtreecommitdiff
path: root/src/parsers/cst
diff options
context:
space:
mode:
Diffstat (limited to 'src/parsers/cst')
-rw-r--r--src/parsers/cst/integer_cst.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parsers/cst/integer_cst.cpp b/src/parsers/cst/integer_cst.cpp
index b5b3686..ebdfe7a 100644
--- a/src/parsers/cst/integer_cst.cpp
+++ b/src/parsers/cst/integer_cst.cpp
@@ -34,6 +34,11 @@ namespace Generic
void parseIntegerCstNode(IntegerCstNode *node)
{
fillType(node);
+ if (!tree_fits_shwi_p(node->gccNode))
+ {
+ node->noLabel = true;
+ return;
+ }
if (tree_int_cst_sgn(node->gccNode) < 0)
{
node->label = "-";