Преглед на файлове

* Fixed bug in decodesoundexint

git-svn-id: trunk@10477 -
michael преди 17 години
родител
ревизия
623e0f0cf5
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 5 3
      rtl/objpas/strutils.pp

+ 5 - 3
rtl/objpas/strutils.pp

@@ -830,9 +830,11 @@ begin
     Result:=Chr(Ord0+(AValue mod 7))+Result;
     AValue:=AValue div 7;
     end;
-  if Len>2 then
-    Result:=IntToStr(AValue mod 26)+Result;
-  AValue:=AValue div 26;
+  if Len>1 then
+    begin
+    Result:=Chr(Ord0+(AValue mod 26))+Result;
+    AValue:=AValue div 26;
+    end;
   Result:=Chr(OrdA+AValue)+Result;
 end;