]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcompare_strings): Fix return values.
authorGerd Moellmann <gerd@gnu.org>
Tue, 10 Apr 2001 18:36:02 +0000 (18:36 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 10 Apr 2001 18:36:02 +0000 (18:36 +0000)
src/ChangeLog
src/fns.c

index bab28c171c2130b8bd75e8da86b4a59a4af8beef..bf6c5522d25e37717dea96e26546b65a6b54c198 100644 (file)
@@ -1,5 +1,7 @@
 2001-04-10  Gerd Moellmann  <gerd@gnu.org>
 
+       * fns.c (Fcompare_strings): Fix return values.
+
        * window.c (window_scroll): Change the meaning of N to mean
        N screen-fulls or N lines.
        (window_scroll_pixel_based, window_scroll_line_based)
index 4bd577772fdabb48d75783990fa108a8a8d67bba..ceda1cfbf41d515418f50e1b7e5d6fe1394ff22d 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -326,9 +326,9 @@ If string STR1 is greater, the value is a positive number N;\n\
         past the character that we are comparing;
         hence we don't add or subtract 1 here.  */
       if (c1 < c2)
-       return make_number (- i1);
+       return make_number (- i1 + XINT (start1));
       else
-       return make_number (i1);
+       return make_number (i1 - XINT (start1));
     }
 
   if (i1 < end1_char)