Mercurial > dropbear
comparison buffer.c @ 642:33fd2f3499d2 dropbear-tfm
A few build fixes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 22 Nov 2011 19:28:58 +0700 |
parents | 2b1bb792cd4d |
children |
comparison
equal
deleted
inserted
replaced
641:2b1bb792cd4d | 642:33fd2f3499d2 |
---|---|
286 unsigned int len, pad = 0; | 286 unsigned int len, pad = 0; |
287 TRACE(("enter buf_putfpint")) | 287 TRACE(("enter buf_putfpint")) |
288 | 288 |
289 dropbear_assert(fp != NULL); | 289 dropbear_assert(fp != NULL); |
290 | 290 |
291 if (SIGN(fp) == FP_NEG) { | 291 if (fp->sign == FP_NEG) { |
292 dropbear_exit("negative bignum"); | 292 dropbear_exit("negative bignum"); |
293 } | 293 } |
294 | 294 |
295 /* zero check */ | 295 /* zero check */ |
296 if (USED(fp) == 1 && DIGIT(fp, 0) == 0) { | 296 if (fp_iszero(fp) == FP_YES) { |
297 len = 0; | 297 len = 0; |
298 } else { | 298 } else { |
299 /* SSH spec requires padding for fpints with the MSB set, this code | 299 /* SSH spec requires padding for fpints with the MSB set, this code |
300 * ifplements it */ | 300 * ifplements it */ |
301 len = fp_count_bits(fp); | 301 len = fp_count_bits(fp); |