Simplify block shift calculation
commitbe59e2590b088770a2c10cfaeb27df9c15e26db9
authorPetr Tesarik <petr@tesarici.cz>
Sun, 21 Oct 2012 21:08:58 +0000 (21 23:08 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Sun, 21 Oct 2012 21:08:58 +0000 (21 23:08 +0200)
tree6b492529867a05341c41af1b8af7a24630cadfb6
parenta3a3325a03ef297746c900ca11d4d1d2a950b840
Simplify block shift calculation

The commit end offset is always at the beginning of a block, i.e.
curs->off is always zero, so we can skip it.

Also reverse the order of the calculation to follow the logic (current
shift plus the change done by the to-be-processed block) and get rid of
the ugly trick with size_t.
libhed/file.c