Skip to content

Commit 7464904

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2424 from tautschnig/vs-template
Templatize architecture_string to avoid type conversion
2 parents 1feaa94 + d07d418 commit 7464904

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ansi-c/ansi_c_internal_additions.cpp

Lines changed: 2 additions & 1 deletion
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)