Fixed 'Bug 15303 - Redundant cast false positive'.
Fixed mixed line ending detection.