fix a warning
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 18 Nov 2009 22:03:20 +0000 (22:03 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 18 Nov 2009 22:03:20 +0000 (22:03 -0000)
svn path=/trunk/mono/; revision=146454

mono/metadata/file-io.c

index 9e1de2fb669c477e4a55ca8aa835589f9aee8446..b72d3a54995b28ecdd750d374860cf178fe3dfbf 100644 (file)
@@ -749,7 +749,7 @@ ves_icall_System_IO_MonoIO_Seek (HANDLE handle, gint64 offset, gint32 origin,
        *error=ERROR_SUCCESS;
        
        offset_hi = offset >> 32;
-       offset = SetFilePointer (handle, offset & 0xFFFFFFFF, &offset_hi,
+       offset = SetFilePointer (handle, (gint32) (offset & 0xFFFFFFFF), &offset_hi,
                                 convert_seekorigin (origin));
 
        if(offset==INVALID_SET_FILE_POINTER) {