summaryrefslogtreecommitdiff
path: root/libs/freeimage/src/FreeImage/CacheFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/freeimage/src/FreeImage/CacheFile.cpp')
-rw-r--r--libs/freeimage/src/FreeImage/CacheFile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/freeimage/src/FreeImage/CacheFile.cpp b/libs/freeimage/src/FreeImage/CacheFile.cpp
index e98906d39e..51065f36bd 100644
--- a/libs/freeimage/src/FreeImage/CacheFile.cpp
+++ b/libs/freeimage/src/FreeImage/CacheFile.cpp
@@ -113,7 +113,7 @@ CacheFile::cleanupMemCache() {
int
CacheFile::allocateBlock() {
Block *block = new Block;
- block->data = new BYTE[BLOCK_SIZE];
+ block->data = new uint8_t[BLOCK_SIZE];
block->next = 0;
if (!m_free_pages.empty()) {
@@ -144,7 +144,7 @@ CacheFile::lockBlock(int nr) {
// again as soon as the memory buffer fills up
if (m_current_block->data == NULL) {
- m_current_block->data = new BYTE[BLOCK_SIZE];
+ m_current_block->data = new uint8_t[BLOCK_SIZE];
fseek(m_file, m_current_block->nr * BLOCK_SIZE, SEEK_SET);
fread(m_current_block->data, BLOCK_SIZE, 1, m_file);
@@ -197,7 +197,7 @@ CacheFile::deleteBlock(int nr) {
}
BOOL
-CacheFile::readFile(BYTE *data, int nr, int size) {
+CacheFile::readFile(uint8_t *data, int nr, int size) {
if ((data) && (size > 0)) {
int s = 0;
int block_nr = nr;
@@ -223,7 +223,7 @@ CacheFile::readFile(BYTE *data, int nr, int size) {
}
int
-CacheFile::writeFile(BYTE *data, int size) {
+CacheFile::writeFile(uint8_t *data, int size) {
if ((data) && (size > 0)) {
int nr_blocks_required = 1 + (size / BLOCK_SIZE);
int count = 0;