From: Chris Hanson Date: Thu, 11 Aug 1988 19:54:25 +0000 (+0000) Subject: (assemble-objects!) Never use / when doing integer arithmetic. Use X-Git-Tag: 20090517-FFI~12620 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=474d450e95dc8b19fe7776c3f65a491944115c30;p=mit-scheme.git (assemble-objects!) Never use / when doing integer arithmetic. Use quotient instead. --- diff --git a/v7/src/compiler/back/bittop.scm b/v7/src/compiler/back/bittop.scm index f6018e61a..b5a7e8609 100644 --- a/v7/src/compiler/back/bittop.scm +++ b/v7/src/compiler/back/bittop.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/back/bittop.scm,v 1.9 1988/06/14 08:09:54 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/back/bittop.scm,v 1.10 1988/08/11 19:54:25 cph Exp $ Copyright (c) 1988 Massachusetts Institute of Technology @@ -115,7 +115,7 @@ MIT in each case. |# (define (assemble-objects! block) (let ((objects (queue->list *objects*)) - (bl (/ (bit-string-length block) scheme-object-width))) + (bl (quotient (bit-string-length block) scheme-object-width))) (let* ((ol (length objects)) (v (make-vector (+ ol bl)))) (write-bits! v scheme-object-width block)