Changeset 5135


Ignore:
Timestamp:
Sep 5, 2006, 9:42:00 PM (18 years ago)
Author:
Gary Byers
Message:

If ENSURE-SIMPLE-STRING has to make a copy of a non-simple string,
understand char width issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-0/l0-utils.lisp

    r3743 r5135  
    6161           (declare (fixnum len)(optimize (speed 3)(safety 0)))
    6262           (multiple-value-bind (ss offset) (array-data-and-offset s)
    63              (%copy-ivector-to-ivector ss offset new 0 len))
     63             #+target-8-bit-chars
     64             (%copy-ivector-to-ivector ss offset new 0 len)
     65             #-target-8-bit-chars
     66             (%copy-ivector-to-ivector ss (ash offset 2) new 0 (ash len 2)))
    6467           new))
    6568        (t (report-bad-arg s 'string))))
Note: See TracChangeset for help on using the changeset viewer.