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:
parent
03c74f1333
commit
a0793a9d31
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user