cipher: Avoid signed divisions in idea.c
authorWerner Koch <wk@gnupg.org>
Fri, 8 Nov 2013 16:21:02 +0000 (17:21 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 8 Nov 2013 16:21:02 +0000 (17:21 +0100)
commite241dde1420475459e32608137829e52748d0212
tree802c70df83d54ec7564848cbd269063472287455
parent9f63c0f7a3b2c15c7e258cd17395cabd0a8f00cc
cipher: Avoid signed divisions in idea.c

* cipher/idea.c (mul_inv): Use unsigned division.
--

Reported-by: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
  Hello, all. While compiling in an environment with only libgcc
  subset for ARM, I found out that idea.c uses signed divisions:
  Reading the code this seems to be unintended. Inlined patch replaces
  them with more appropriate unsigned division.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/idea.c