Optimize EOF check in file_set_block and file_set_bytes
commitb13c49c5351a97277f9d00701bf6cfd4cd25be1e
authorPetr Tesarik <petr@tesarici.cz>
Tue, 16 Oct 2012 23:43:59 +0000 (17 01:43 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Tue, 16 Oct 2012 23:43:59 +0000 (17 01:43 +0200)
treeb2338caef3eda7e8ee61f9ba75efadf49544826a
parent188d0f3ceef154573b6e733c11541d16073411c4
Optimize EOF check in file_set_block and file_set_bytes

Since the cursor is moved one byte beyond the modified area in these
cases, I can check the current block's EOF after the loop.
libhed/file.c