Sfoglia il codice sorgente

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

git-svn-id: trunk@34009 -
pierre 9 anni fa
parent
commit
27119cad3c
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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+}