Skip to content

Commit ba23349

Browse files
Fix Windows Failure
1 parent d528264 commit ba23349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libasr/location.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ struct LocationManager {
205205

206206
void get_newlines(const std::string &s, std::vector<uint32_t> &newlines) {
207207
for (uint32_t pos=0; pos < s.size(); pos++) {
208-
if (s[pos] == '\n') newlines.push_back(pos);
208+
if (s[pos] == '\n' || s[pos] == '\r\n') newlines.push_back(pos);
209209
}
210210
}
211211

0 commit comments

Comments
 (0)