Squelch clang 3.9.0 warnings about BASE (which is 32768) being converted

to -32768 when it is used as an argument to mp_itom(), in both libtelnet
and newkey.  This code has been wrong since r26238 (!), so after almost
20 years it is rather useless to try to correct it.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2016-08-30 19:02:15 +00:00
parent bf0d940a2f
commit c43262580d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305077
2 changed files with 2 additions and 2 deletions

View file

@ -164,7 +164,7 @@ genkeys(char *public, char *secret)
MINT *pk = mp_itom(0);
MINT *sk = mp_itom(0);
MINT *tmp;
MINT *base = mp_itom(BASE);
MINT *base = mp_itom((short)BASE);
MINT *root = mp_itom(PROOT);
MINT *modulus = mp_xtom(HEXMODULUS);
short r;

View file

@ -82,7 +82,7 @@ genkeys(char *public, char *secret, char *pass)
MINT *pk = mp_itom(0);
MINT *sk = mp_itom(0);
MINT *tmp;
MINT *base = mp_itom(BASE);
MINT *base = mp_itom((short)BASE);
MINT *root = mp_itom(PROOT);
MINT *modulus = mp_xtom(HEXMODULUS);
short r;