libmp: fix #6: mptole takes `p` xor `pp`
See commit 0f82a2c3c3
for further info
Also fix build after typo.
This commit is contained in:
parent
0f82a2c3c3
commit
6e816b293d
|
@ -10,6 +10,7 @@ mptobe(mpint *b, uint8_t *p, uint32_t n, uint8_t **pp)
|
|||
{
|
||||
int m;
|
||||
|
||||
assert((p == nil) != (pp == nil));
|
||||
m = (mpsignif(b)+7)/8;
|
||||
if(m == 0)
|
||||
m++;
|
||||
|
|
|
@ -10,7 +10,7 @@ mptole(mpint *b, uint8_t *p, uint32_t n, uint8_t **pp)
|
|||
{
|
||||
int m;
|
||||
|
||||
assert((p == nil) != (pp == nil))
|
||||
assert((p == nil) != (pp == nil));
|
||||
m = (mpsignif(b)+7)/8;
|
||||
if(m == 0)
|
||||
m++;
|
||||
|
|
Loading…
Reference in New Issue