diff options
Diffstat (limited to 'module/srfi/srfi-4.scm')
-rw-r--r-- | module/srfi/srfi-4.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/srfi/srfi-4.scm b/module/srfi/srfi-4.scm index 818ae7a73..43f5ef68f 100644 --- a/module/srfi/srfi-4.scm +++ b/module/srfi/srfi-4.scm @@ -1,6 +1,7 @@ ;;; srfi-4.scm --- Homogeneous Numeric Vector Datatypes -;; Copyright (C) 2001, 2002, 2004, 2006, 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 2001, 2002, 2004, 2006, 2009, 2010, +;; 2012 Free Software Foundation, Inc. ;; ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public @@ -79,7 +80,8 @@ (apply make-srfi-4-vector ',tag len fill)) (define (,(symbol-append tag 'vector-length) v) (let ((len (* (uniform-vector-length v) - (/ ,size (uniform-vector-element-size v))))) + (uniform-vector-element-size v) + (/ ,size)))) (if (integer? len) len (error "fractional length" v ',tag ,size)))) |