Skip to content

Commit dea2592

Browse files
author
Daniel Kroening
committed
treat real and integer as 'numeric' in C front-end
1 parent 57ecf15 commit dea2592

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ansi-c/c_typecheck_base.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ class c_typecheck_baset:
265265
src.id()==ID_c_bool ||
266266
src.id()==ID_bool ||
267267
src.id()==ID_c_enum_tag ||
268-
src.id()==ID_c_bit_field;
268+
src.id()==ID_c_bit_field ||
269+
src.id()==ID_integer ||
270+
src.id()==ID_real;
269271
}
270272

271273
typedef std::unordered_map<irep_idt, irep_idt, irep_id_hash> asm_label_mapt;

0 commit comments

Comments
 (0)