CkIO: Windows compilation fix
authorPhil Miller <mille121@illinois.edu>
Wed, 28 Aug 2013 22:04:52 +0000 (17:04 -0500)
committerPhil Miller <mille121@illinois.edu>
Wed, 28 Aug 2013 22:04:52 +0000 (17:04 -0500)
src/libs/ck-libs/io/ckio.C

index c66b623545bf2b6702b84ca46f2b0b4dc1e5257c..1c7829195ecc33bda8297f131c15903317308b46 100644 (file)
@@ -305,7 +305,7 @@ namespace Ck { namespace IO {
             fatalError("fsync failed", file->name);
 #elif defined(_WIN32)
           intptr_t hFile = _get_osfhandle(file->fd);
-          if (FlushFileBuffers(hFile) == 0)
+          if (FlushFileBuffers((HANDLE)hFile) == 0)
             fatalError("FlushFileBuffers failed", file->name);
 #elif CMK_HAS_SYNC_FUNC
 #warning "Will call sync() for every completed write"