Skip to content

Commit dab95ac

Browse files
authored
Update bin2cpp.cpp
1 parent 7c6c51c commit dab95ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin2cpp20/bin2cpp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ bool is_Valid(const std::string &name) {
249249
std::string convertString(const std::string &s) {
250250
std::string temp;
251251
for(std::size_t i = 0; i < s.length(); ++i) {
252+
if(s[i] == '\r') {
253+
continue; // eat token
254+
} else
252255
if(s[i] == '\"' || s[i] == '\\') {
253256
temp += "\\";
254257
temp += s[i];

0 commit comments

Comments
 (0)