瀏覽代碼

* RomanToInt fixed, solves #7060

git-svn-id: trunk@3900 -
florian 19 年之前
父節點
當前提交
53cdd50152
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/objpas/strutils.pp

+ 1 - 1
rtl/objpas/strutils.pp

@@ -1231,7 +1231,7 @@ end;
 function RomanToint(const S: string): Longint;
 function RomanToint(const S: string): Longint;
 
 
 const
 const
-  RomanChars  = ['C','D','i','L','M','V','X'];
+  RomanChars  = ['C','D','I','L','M','V','X'];
   RomanValues : array['C'..'X'] of Word
   RomanValues : array['C'..'X'] of Word
               = (100,500,0,0,0,0,1,0,0,50,1000,0,0,0,0,0,0,0,0,5,0,10);
               = (100,500,0,0,0,0,1,0,0,50,1000,0,0,0,0,0,0,0,0,5,0,10);