Fix various signedness issues in the swap code
commit643fb7df1afbfffe0643c84dc839f6f44c1ec909
authorPetr Tesarik <petr@tesarici.cz>
Thu, 27 Sep 2012 15:57:52 +0000 (27 17:57 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Thu, 27 Sep 2012 15:57:52 +0000 (27 17:57 +0200)
tree0a7c66ed222b388ce2985b0535c672fb92b35913
parentee8104bbaa41271be7814428023dd6d8937b9191
Fix various signedness issues in the swap code

Basic idea: make everything unsigned. Again, we may pass negaive
(overflown) offsets to the system library, but:

1. that should never happen unless there is a bug,
2. if it does happen, the system doesn't explode; it simply reports
   an error, and we must be prepared to handle errors anyway.
libhed/swap.c
libhed/swap.h