skjolber / xswi

The simple, standalone XML Stream Writer for iOS
30 stars 5 forks source link

Test expression "(c == '\n' || c == '\r' || '\t')" always returns true #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In XMLWriter.m you'll find the following code:

if (c == '\n' || c == '\r' || '\t') {
                    // valid;
                    rangeLength++;

                    continue;
                }

But the test expression will always be true. It is missing a "c ==".

Original issue reported on code.google.com by ken.jons...@gmail.com on 27 Aug 2011 at 3:18

GoogleCodeExporter commented 9 years ago
Thanks for the bug report! The issue has been fixed and is downloads have been 
updated.

Original comment by skjol...@gmail.com on 29 Aug 2011 at 8:24