From: Ralph Corderoy Date: Sun, 20 Aug 2017 10:38:04 +0000 (+0100) Subject: contains8bit(): Don't fetch a byte when start >= end. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/dc7efebe09e15e0e9e8a7821602c5052f00ef9b9?ds=inline;hp=dc7efebe09e15e0e9e8a7821602c5052f00ef9b9 contains8bit(): Don't fetch a byte when start >= end. The test for a NUL byte was before the test for start being before end. Whilst here, hoist the test of end out of the per-byte loop, alter the function to return bool, and merge the two, different, comments explaining the function's behaviour. ---