소스 검색

* yet another longint replaced with objpasint in fpc_shortstr_compare_equal

git-svn-id: trunk@32098 -
nickysn 10 년 전
부모
커밋
db7b743139
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/inc/generic.inc

+ 1 - 1
rtl/inc/generic.inc

@@ -1035,7 +1035,7 @@ function fpc_shortstr_compare_equal(const left,right:shortstring): longint; [pub
 begin
   Result := ObjpasInt(left[0]) - ObjpasInt(right[0]);
   if Result = 0 then
-    Result := CompareByte(left[1],right[1], longint(left[0]));
+    Result := CompareByte(left[1],right[1], ObjpasInt(left[0]));
 end;
 {$endif ndef FPC_SYSTEM_HAS_FPC_SHORTSTR_COMPARE_EQUAL}