Skip to content

Commit d07d418

Browse files
committed
Templatize architecture_string to avoid type conversion
1 parent b8743fa commit d07d418

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ansi-c/ansi_c_internal_additions.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ static std::string architecture_string(const std::string &value, const char *s)
114114
"=\""+value+"\";\n";
115115
}
116116

117-
static std::string architecture_string(int value, const char *s)
117+
template <typename T>
118+
static std::string architecture_string(T value, const char *s)
118119
{
119120
return std::string("const int __CPROVER_architecture_")+
120121
std::string(s)+

0 commit comments

Comments
 (0)