Ignore:
Timestamp:
03/23/05 18:24:43 (16 years ago)
Author:
piso
Message:

NORMALIZE-TYPE: handle SIGNED-BYTE compound types correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/early-defuns.lisp

    r8784 r8818  
    22;;;
    33;;; Copyright (C) 2003-2005 Peter Graves
    4 ;;; $Id: early-defuns.lisp,v 1.21 2005-03-17 14:59:57 piso Exp $
     4;;; $Id: early-defuns.lisp,v 1.22 2005-03-23 18:24:43 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    102102       (if (or (null i) (eq (car i) '*))
    103103           (return-from normalize-type 'integer)
    104            (return-from normalize-type (list 'integer (expt -2 (1- (car i))) (1- (expt 2 (1- (car i))))))))
     104           (return-from normalize-type
     105                        (list 'integer
     106                              (- (expt 2 (1- (car i))))
     107                              (1- (expt 2 (1- (car i))))))))
    105108      (UNSIGNED-BYTE
    106109       (if (or (null i) (eq (car i) '*))
Note: See TracChangeset for help on using the changeset viewer.