File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -175,13 +175,10 @@ static void THDiskFile_seek(THFile *self, long position)
175
175
THArgCheck (dfself->handle != NULL , 1 , " attempt to use a closed file" );
176
176
177
177
#if defined(_WIN64)
178
- THArgCheck (position <= (_int64)INT64_MAX, 2 , " position must be smaller than INT64_MAX" );
179
178
if (_fseeki64 (dfself->handle , (__int64)position, SEEK_SET) < 0 )
180
179
#elif defined(_WIN32)
181
- THArgCheck (position <= (long )LONG_MAX, 2 , " position must be smaller than LONG_MAX" );
182
180
if (fseek (dfself->handle , (long )position, SEEK_SET) < 0 )
183
181
#else
184
- THArgCheck (position <= (long )LLONG_MAX, 2 , " position must be smaller than LLONG_MAX" );
185
182
if (fseeko (dfself->handle , (off_t )position, SEEK_SET) < 0 )
186
183
#endif
187
184
{
You can’t perform that action at this time.
0 commit comments