Skip to content

Commit ec750ef

Browse files
committed
Change as_string to id2string
1 parent 1af0a14 commit ec750ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansi-c/c_typecheck_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ void c_typecheck_baset::typecheck_c_enum_type(typet &type)
12411241
{
12421242
// Note: This is inefficient as it first turns integers to strings
12431243
// and then turns them back to bvrep
1244-
auto value = string2integer(as_string(member.get_value()));
1244+
auto value = string2integer(id2string(member.get_value()));
12451245
member.set_value(integer2bvrep(value, width));
12461246
}
12471247

0 commit comments

Comments
 (0)