We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a904300 commit 4ea9151Copy full SHA for 4ea9151
src/util/string_constant.cpp
@@ -52,20 +52,11 @@ array_exprt string_constantt::to_array_expr() const
52
int ch=i==string_size-1?0:str[i];
53
54
if(char_is_unsigned)
55
- ch=(unsigned char)ch;
+ ch = (unsigned char)ch;
56
+ else
57
+ ch = (signed char)ch;
58
- exprt &op=*it;
-
59
- op=from_integer(ch, char_type);
60
61
- if(ch>=32 && ch<=126)
62
- {
63
- std::string ch_str="'";
64
- if(ch=='\'' || ch=='\\')
65
- ch_str+='\\';
66
- ch_str+=static_cast<char>(ch);
67
- ch_str+="'";
68
- }
+ *it = from_integer(ch, char_type);
69
}
70
71
return dest;
0 commit comments