Explorar o código

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

git-svn-id: trunk@34009 -
pierre %!s(int64=9) %!d(string=hai) anos
pai
achega
27119cad3c
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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+}