Browse Source

--- Merging r14772 into '.':
U ide/wini.pas
* Avoid range checks in CalcHash

git-svn-id: branches/fixes_2_4@14773 -

pierre 15 years ago
parent
commit
7fb9ceb868
1 changed files with 7 additions and 0 deletions
  1. 7 0
      ide/wini.pas

+ 7 - 0
ide/wini.pas

@@ -92,6 +92,10 @@ uses
   {$Q-}
   {$Q-}
   {$DEFINE REENABLE_Q}
   {$DEFINE REENABLE_Q}
 {$ENDIF}
 {$ENDIF}
+{$IFOPT R+}
+  {$R-}
+  {$DEFINE REENABLE_R}
+{$ENDIF}
 
 
 function CalcHash(const s: String): Cardinal;
 function CalcHash(const s: String): Cardinal;
 var
 var
@@ -105,6 +109,9 @@ end;
 {$IFDEF REENABLE_Q}
 {$IFDEF REENABLE_Q}
   {$Q+}
   {$Q+}
 {$ENDIF}
 {$ENDIF}
+{$IFDEF REENABLE_R}
+  {$R+}
+{$ENDIF}
 
 
 constructor TINIEntry.Init(const ALine: string);
 constructor TINIEntry.Init(const ALine: string);
 begin
 begin