Parcourir la source

Disable range checks explicitly as THandle is unsigned at least for win32 OS

git-svn-id: trunk@34009 -
pierre il y a 9 ans
Parent
commit
27119cad3c
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      tests/test/units/sysutils/tfile2.pp

+ 8 - 0
tests/test/units/sysutils/tfile2.pp

@@ -1,3 +1,11 @@
+{ THandle is unsigned at least for win32 OS,
+  this leads to range check errors when fileopen
+  returns invalid handle.
+  Explicitly disable range checks }
+
+{$R-}
+
+
 {$ifdef fpc}
 {$mode objfpc}
 {$h+}