Skip to content

Commit

Permalink
Fix a legit warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
tapio committed Sep 20, 2020
1 parent 1eb642b commit f25c9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obj-magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int main(int argc, char* argv[]) {

auto outputUnmodifiedRow = [](std::ostream& out, const std::string& row) {
// getline stops at \n, so there might be \r hiding in there if we are reading CRLF files
unsigned last = row.size() - 1;
int last = row.size() - 1;
if (last >= 0 && row[last] == '\r')
out << row.substr(0, last) << std::endl;
else out << row << std::endl;
Expand Down

0 comments on commit f25c9b7

Please sign in to comment.