Sfoglia il codice sorgente

PackageTool: unsigned char to u8

1vanK 3 anni fa
parent
commit
f083d377b9
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Source/Tools/PackageTool/PackageTool.cpp

+ 2 - 2
Source/Tools/PackageTool/PackageTool.cpp

@@ -322,7 +322,7 @@ void WritePackageFile(const String& fileName, const String& rootDir)
 
         unsigned dataSize = entries_[i].size_;
         totalDataSize += dataSize;
-        SharedArrayPtr<unsigned char> buffer(new unsigned char[dataSize]);
+        SharedArrayPtr<u8> buffer(new u8[dataSize]);
 
         if (srcFile.Read(&buffer[0], dataSize) != dataSize)
             ErrorExit("Could not read file " + fileFullPath);
@@ -342,7 +342,7 @@ void WritePackageFile(const String& fileName, const String& rootDir)
         }
         else // Compress 
         {
-            SharedArrayPtr<unsigned char> compressBuffer(new unsigned char[LZ4_compressBound(blockSize_)]);
+            SharedArrayPtr<u8> compressBuffer(new u8[LZ4_compressBound(blockSize_)]);
 
             unsigned pos = 0;