Changeset 37824 in project


Ignore:
Timestamp:
08/04/19 14:30:32 (2 weeks ago)
Author:
sjamaan
Message:

vector-lib: Use ##sys#check-fixnum instead of ##sys#check-exact on indices

In CHICKEN 4, ##sys#check-exact was what we now call ##sys#check-fixnum
but the vector-lib code hasn't been updated to match it.

Fixes #1631

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/5/vector-lib/trunk/vector-lib.scm

    r35587 r37824  
    188188  (syntax-rules (vector? integer? list? nonneg-int? procedure?)
    189189    ((_ vector? value callee)     (begin (##sys#check-vector value callee) value))
    190     ((_ integer? value callee)    (begin (##sys#check-exact value callee) value))
     190    ((_ integer? value callee)    (begin (##sys#check-fixnum value callee) value))
    191191    ((_ list? value callee)       (begin (##sys#check-list value callee) value))
    192     ((_ nonneg-int? value callee) (begin (##sys#check-exact value callee)
     192    ((_ nonneg-int? value callee) (begin (##sys#check-fixnum value callee)
    193193                                         (when (< value 0)
    194194                                           (##sys#error callee "value is negative" value))
Note: See TracChangeset for help on using the changeset viewer.