From e9a26631dd34230ee2a06d8c850376ad5276c21e Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 29 Apr 2003 00:43:56 +0000 Subject: [PATCH] r4669: Auto commit for Debian build --- strings.lisp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/strings.lisp b/strings.lisp index a348ed5..94eaed4 100644 --- a/strings.lisp +++ b/strings.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: strings.lisp,v 1.11 2003/04/29 00:23:21 kevin Exp $ +;;;; $Id: strings.lisp,v 1.12 2003/04/29 00:43:56 kevin Exp $ ;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -110,9 +110,10 @@ (defun string-trim-last-character (s) "Return the string less the last character" - (aif (plusp (length s)) - (subseq s 0 (1- it)) - s)) + (let ((len (length s))) + (if (plusp len) + (subseq s 0 (1- len)) + s)) (defun string-hash (str &optional (bitmask 65535)) (let ((hash 0)) -- 2.34.1