Fix silly thinko in definition of STRIP-SUBJECT-RE.
authorTaylor R Campbell <campbell@mumble.net>
Tue, 30 Nov 2010 19:16:08 +0000 (19:16 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Tue, 30 Nov 2010 19:16:08 +0000 (19:16 +0000)
Also omit needless unsafe fixnum specialization.

src/imail/imail-core.scm

index d78e5983616d3dd48452bfd77c8d6d5ee72428e3..0f76cf7d7985070d3c1991c0c2a2ec2ffb1d5804 100644 (file)
@@ -647,10 +647,10 @@ USA.
 (define (strip-subject-re subject)
   (let ((end (string-length subject)))
     (let loop ((start 0))
-      (if (and (fix:<= 3 (fix:- end start))
-              (substring-prefix-ci? "Re:" 0 3 subject (fix:+ start 3) end))
+      (if (and (<= 3 (- end start))
+              (substring-prefix-ci? "Re:" 0 3 subject start end))
          (loop
-          (substring-find-next-char-in-set subject (fix:+ start 3) end
+          (substring-find-next-char-in-set subject (+ start 3) end
                                            char-set:subject-content))
          (string-tail subject start)))))