Changeset 10365


Ignore:
Timestamp:
11/05/05 02:19:30 (16 years ago)
Author:
piso
Message:

Signal TYPE-ERROR properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/make-hash-table.lisp

    r7738 r10365  
    11;;; make-hash-table.lisp
    22;;;
    3 ;;; Copyright (C) 2003-2004 Peter Graves
    4 ;;; $Id: make-hash-table.lisp,v 1.5 2004-09-19 13:35:21 piso Exp $
     3;;; Copyright (C) 2003-2005 Peter Graves
     4;;; $Id: make-hash-table.lisp,v 1.6 2005-11-05 02:19:30 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    2222(defun make-hash-table (&key (test 'eql) (size 11) (rehash-size 1.5)
    2323           (rehash-threshold 0.75))
    24   (setq test (coerce-to-function test))
     24  (setf test (coerce-to-function test))
    2525  (unless (and (integerp size) (>= size 0))
    26     (error 'type-error "MAKE-HASH-TABLE: ~S is not a non-negative integer." size))
     26    (error 'type-error :datum size :expected-type '(integer 0)))
    2727  (let ((size (max 11 (min size array-dimension-limit))))
    2828    (%make-hash-table test size rehash-size rehash-threshold)))
Note: See TracChangeset for help on using the changeset viewer.