瀏覽代碼

C++ style cast

Source commit: 1fd02a750660ec91883c7e8ed58e7d70e27e3a6f
Martin Prikryl 7 年之前
父節點
當前提交
622ba2c692
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/core/S3FileSystem.cpp

+ 1 - 1
source/core/S3FileSystem.cpp

@@ -1309,7 +1309,7 @@ void __fastcall TS3FileSystem::Source(
 
     __int64 Position = 0;
 
-    std::unique_ptr<TStream> Stream(new TSafeHandleStream((THandle)Handle.Handle));
+    std::unique_ptr<TStream> Stream(new TSafeHandleStream(reinterpret_cast<THandle>(Handle.Handle)));
 
     for (int Part = 1; Part <= Parts; Part++)
     {