From 2733d296db716b7903a641617c88f2e678df3337 Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Thu, 21 Feb 1991 16:17:48 +0000 Subject: [PATCH] bignum_trim did not produce 0-length bignums even when there were no bits set. --- v7/src/microcode/bignum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v7/src/microcode/bignum.c b/v7/src/microcode/bignum.c index 46accd55e..fd02cf242 100644 --- a/v7/src/microcode/bignum.c +++ b/v7/src/microcode/bignum.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/bignum.c,v 9.33 1990/12/29 22:00:54 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/bignum.c,v 9.34 1991/02/21 16:17:48 jinx Exp $ Copyright (c) 1989, 1990 Massachusetts Institute of Technology @@ -1611,7 +1611,7 @@ bignum_trim (bignum) fast bignum_digit_type * start = (BIGNUM_START_PTR (bignum)); fast bignum_digit_type * end = (start + (BIGNUM_LENGTH (bignum))); fast bignum_digit_type * scan = end; - while ((start < scan) && ((*--scan) == 0)) + while ((start <= scan) && ((*--scan) == 0)) ; scan += 1; if (scan < end) -- 2.25.1