c-decl.c (check_bitfield_type_and_width): Do not pass NULL to build_int_cst.
[gcc.git] / gcc / c-decl.c
index 008f4c65c761293b81e6391b0602a4c238bcdc5a..9b217d26de5eb79128f89ce7dacddb784a52e6df 100644 (file)
@@ -4717,7 +4717,7 @@ check_bitfield_type_and_width (tree *type, tree *width, tree orig_name)
     {
       error ("width of %qs exceeds its type", name);
       w = max_width;
-      *width = build_int_cst (NULL_TREE, w);
+      *width = build_int_cst (integer_type_node, w);
     }
   else
     w = tree_low_cst (*width, 1);