Преглед изворни кода

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++)
     {