Skip to content

Commit f5b8124

Browse files
committed
Explicit casts to avoid conversion warnings: irept::set takes a signed long long
Visual Studio warns about signed/unsigned conversion and limited range of types.
1 parent 4e49e05 commit f5b8124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/cpp_convert_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ void cpp_convert_plain_type(typet &type, message_handlert &message_handler)
335335
}
336336
else if(type.id() == ID_c_bool)
337337
{
338-
type.set(ID_width, config.ansi_c.bool_width);
338+
type.set(ID_width, static_cast<long long>(config.ansi_c.bool_width));
339339
}
340340
else
341341
{

0 commit comments

Comments
 (0)