]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Improve integer-type hygiene in bignum code.
authorSimon Tatham <anakin@pobox.com>
Mon, 8 Jun 2015 18:23:48 +0000 (19:23 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 8 Jun 2015 18:23:48 +0000 (19:23 +0100)
commite28b35b0a39de28fa2f71aa78071d1ad62deaceb
treeb410e864b4c4df210cbb29d97e321d7525532519
parent0aa92c8fa2bee2e4c0082adcc9f06ead24989698
Improve integer-type hygiene in bignum code.

In many places I was using an 'unsigned int', or an implicit int by
virtue of writing an undecorated integer literal, where what was
really wanted was a BignumInt. In particular, this substitution breaks
in any situation where BignumInt is _larger_ than unsigned - which it
is shortly about to be.
sshbn.c
sshccp.c